|
#1
Apr 11, 2013, 05:02 AM
|
|
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
Apr 11, 2013, 05:17 AM
|
|
|
|
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
Apr 11, 2013, 08:50 AM
|
|
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
Apr 11, 2013, 10:58 AM
|
|
|
|
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
Apr 18, 2013, 04:36 AM
|
|
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
Apr 18, 2013, 05:59 AM
|
|
|
|
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
Apr 18, 2013, 06:17 AM
|
|
Yeah that is what I did. When I go to the widget tab I see both area's now.
|
#8
Apr 18, 2013, 06:52 AM
|
|
|
|
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
Apr 18, 2013, 07:01 AM
|
|
yes but now both blog and shop only show widget area one
|
#10
Apr 18, 2013, 07:12 AM
|
|
|
|
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
Apr 26, 2013, 05:45 AM
|
|
Hi Juggledad,
Sorry for the slow reply. Great if you could have a look at this matter.
Regards,
Erik
|
#12
Apr 26, 2013, 06:09 AM
|
|
|
|
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
Apr 26, 2013, 06:25 AM
|
|
'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
Apr 26, 2013, 06:30 AM
|
|
|
|
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
Apr 26, 2013, 06:44 AM
|
|
Mmm I am not sure. Attached a screenshot. Would it help if I gave you a login?
Thanks for the incredibly quick replies!
|
#16
Apr 26, 2013, 07:56 AM
|
|
|
|
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
Apr 26, 2013, 08:04 AM
|
|
1. screenshot attached.
2. bring it on.
|
#18
Apr 26, 2013, 08:18 AM
|
|
|
|
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
Apr 26, 2013, 10:13 AM
|
|
it says:
archive category category-movie-ink-the-gallery category-23
|
#20
Apr 26, 2013, 02:22 PM
|
|
|
|
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.
|
#22
May 17, 2013, 05:48 AM
|
|
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
May 17, 2013, 07:04 AM
|
|
|
|
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
May 17, 2013, 07:47 AM
|
|
yeah works great! Solved. Thanks.
Erik
|
|