Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Different Widgets / Sidebar for each menu


  #1  
Old Apr 11, 2013, 04:02 AM
movie-ink
 
16 posts · Mar 2013
Would anyone know how I can get a different sidebar with different widgets showing for the pages related to the two menu's I use?

Our site shows info on a Gallery and on a Web shop. I want to keep to keep them separated e.g. I do not want to bother visitors to the Gallery part with info on things they can buy in our shop.

http://www.hazardousoperations.com/movie-ink_wp/

I would love to be able to select which widget shows up on which page.



Cheers
  #2  
Old Apr 11, 2013, 04:17 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
two ideas
1) use two sidebars and just show the one you want on the page you want - see the 'Style & configure SIDEBARS' options
2) use one sidebar and a plugin like 'widget logic' or 'viual widget logic' to control the page the widget shows on
  #3  
Old Apr 11, 2013, 07:50 AM
movie-ink
 
16 posts · Mar 2013
Hi Juggledad,

Thanks for the quick reply. Could you tell me where to find the 'Style & configure SIDEBARS' options?
Will have a look at the plugins as well.

Thanks!
  #4  
Old Apr 11, 2013, 09:58 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
sorry, that is an Atahualpa option, I didn't notice that this is a Montezuma question

With Montezuma, you should create a new virtual template - copying the existing virtual 'page.php' template - and call it 'page-nn.php' where nn is the page id or call it 'page-xxxxxxxxx.php' where xxxxxxxxx is the page slug (if you had a page called 'activity' you would use 'page-activity.php')

Next edit this template and near the bottom you will see a dynamic widget area. Call it something else and now you will have two different widget areas and can put the widgets in the one you want.
  #5  
Old Apr 18, 2013, 03:36 AM
movie-ink
 
16 posts · Mar 2013
Hi Juggledad,

Thanks for the advice so far. I managed to do as you told and everything seems to be working, though I do not understand how to get the original widget area on the blog related pages and the newly made widget area on the shop related pages.

Thanks,

Erik
  #6  
Old Apr 18, 2013, 04:59 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
so you created a virtulate template called 'woocommerce-page.php' correct?
did you change the name of the widget area as I told you to in my last post? you need to change the code
HTML Code:
	<div id="widgetarea-one" class="col4">
		<?php dynamic_sidebar( 'Widget Area ONE' ); ?>
	</div>
to something like
HTML Code:
	<div id="widgetarea-shop" class="col4">
		<?php dynamic_sidebar( 'Shop page widget area' ); ?>
	</div>
then you will see the new area at dashboard->appearances->widgets
  #7  
Old Apr 18, 2013, 05:17 AM
movie-ink
 
16 posts · Mar 2013
Yeah that is what I did. When I go to the widget tab I see both area's now.
  #8  
Old Apr 18, 2013, 05:52 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
so did you put different widgets it the two areas?
  #9  
Old Apr 18, 2013, 06:01 AM
movie-ink
 
16 posts · Mar 2013
yes but now both blog and shop only show widget area one
  #10  
Old Apr 18, 2013, 06:12 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
go to mto->Export Import and copy the 'Current Montezuma Settings to a TEXT file and attach it to a reply
  #11  
Old Apr 26, 2013, 04:45 AM
movie-ink
 
16 posts · Mar 2013
Hi Juggledad,

Sorry for the slow reply. Great if you could have a look at this matter.

Regards,

Erik
Attached Files
File Type: txt Movie Ink. - Current Montezuma Theme.txt (74.1 KB, 1558 views)
  #12  
Old Apr 26, 2013, 05:09 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
So what type of page is 'The Gallery'?

In the wordpress template hierarchy (if you don't know what this is, do a google search), what templete would be used with this page?
  #13  
Old Apr 26, 2013, 05:25 AM
movie-ink
 
16 posts · Mar 2013
'Gallery' is the page for the blog an all info related to our Movie Poster Gallery based in Amsterdam
'Shop' refers to the shop part - our online poster selling that we wish to see as a separate thing from our Gallery.

'Gallery' is the main page, 'Shop' is in fact an extra part added to the Gallery.

Would that work?
  #14  
Old Apr 26, 2013, 05:30 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what I am asking is what type of WordPress page is that - ie is it a page page, a single post page, archive page, a category page?
  #15  
Old Apr 26, 2013, 05:44 AM
movie-ink
 
16 posts · Mar 2013
Mmm I am not sure. Attached a screenshot. Would it help if I gave you a login?

Thanks for the incredibly quick replies!
  #16  
Old Apr 26, 2013, 06:56 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) there is no screen shot
2) I know the answer, I'm making you dig and learn the answer
  #17  
Old Apr 26, 2013, 07:04 AM
movie-ink
 
16 posts · Mar 2013
1. screenshot attached.

2. bring it on.
Attached Thumbnails
Click image for larger version

Name:	to Paul.jpg
Views:	1185
Size:	156.4 KB
ID:	2323  
  #18  
Old Apr 26, 2013, 07:18 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
so use firebug and look at the page and look at the <body...> and see what classes it has. this will tell you the type of page.

Then download the template hierarchy (remember I told you to google search this) and see what's used for that page type and report back your findings.
  #19  
Old Apr 26, 2013, 09:13 AM
movie-ink
 
16 posts · Mar 2013
it says:
archive category category-movie-ink-the-gallery category-23
  #20  
Old Apr 26, 2013, 01:22 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Good, that answers 50% of my questions, but that is not a passing grade.
  #21  
Old Apr 28, 2013, 09:52 PM
studioelle's Avatar
studioelle
 
40 posts · Mar 2010
Alabama, USA
If you don't feel like you can figure out the preferred sidebar widget per page coding, you could always use Display Widgets. http://wordpress.org/extend/plugins/display-widgets/
  #22  
Old May 17, 2013, 04:48 AM
movie-ink
 
16 posts · Mar 2013
Hi Studioelle & Juggledad,

Thanks for the advice. I decided to use the plugin as it is far more easy for me. Thanks for the advice on coding though Mr. Juggledad!

Best,

Erik
  #23  
Old May 17, 2013, 06:04 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
so is this working for you then?
  #24  
Old May 17, 2013, 06:47 AM
movie-ink
 
16 posts · Mar 2013
yeah works great! Solved. Thanks.

Erik

Bookmarks

Tags
menu, widget area

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to mix 2 and 1 sidebar widgets? Danielwerner Sidebars & Widgets 2 Nov 25, 2011 02:53 PM
3.4.9 and sidebar widgets? clemon79 New Versions, & Updating 5 May 29, 2010 02:13 AM
Can't add widgets to either sidebar catchthewind Sidebars & Widgets 7 Nov 11, 2009 08:42 PM
right widgets cut off in IE, Firefox-right sidebar text smaller than on left sidebar daisy24 Sidebars & Widgets 2 Feb 23, 2009 10:59 AM
Set left sidebar widgets same distance from center area as right sidebar widgets daisy24 Sidebars & Widgets 2 Feb 19, 2009 05:11 AM


All times are GMT -6. The time now is 11:36 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.