Jump to content
quinntinm

Different Content In Sidebar On Different Templates

Recommended Posts

quinntinm

Hi there.

I assumed that if i clicked on template 2 and edited the items in the sidebar:

primary sidebar

secondary sidebar

etc

 

and then went to template 3 and removed say primary sidebar that it would still remain as i set it in template 2, but it seems it does not.

 

Is this a bug?

 

I want certain templates to display certain elements in a sidebar - how do i do that across different templates?

 

 

Thanks.

 

Share this post


Link to post
Share on other sites
quinntinm

Thanks catrina.

 

I added it and have managed to see that if i do this "!is_page( 190 )" it will show on all pages except that or....

"is_page( 190 )" and it will only show on that page.

 

BUT, when it doesn't show, then i get all manner of other elements in that sidebar like categories, archives, calendar, meta...

All of which are not specified in any sidebar in the widgets.

 

How do i resolve that?

 

thanks.

Share this post


Link to post
Share on other sites
Simon

Thats because if the sidebar is empty it shows default sidebar contents, there is an option to sot show the sidebar when empty, somewhere in the settings.

Share this post


Link to post
Share on other sites
quinntinm

ah, ok.

Hide Sidebars When Empty (no widgets) in the website setup screen.

 

whew, this gets more complex the more i dig :-)

 

Thanks for the help!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×