Jump to content
Sign in to follow this  
szool

different sidebar for category pages?

Recommended Posts

szool

It is very easy on the pages to change the sidebar... but how about for a category page? I'd like to have a different sidebar when viewing category pages. (Same sidebar for all categories)

Share this post


Link to post
Share on other sites
szool

can we expand this to also include a different sidebar for the posts page?

Share this post


Link to post
Share on other sites
bryan-hadaway

Can I please get a link to one of your category pages and an explanation of exactly what you'd like to do with the sidebar. Thanks, Bryan

Share this post


Link to post
Share on other sites
szool

ok here is one example: http://citizenmediagroup.com/category/news-all/ When that category page comes up, my main sidebar is displayed. I would like my secondary sidebar to display, which will contain options specific to the news category. It would also be nice to be able to have multiple secondary sidebars which could be assigned to different categories, so each category could have content related to exactly that category... if that is possible?

Share this post


Link to post
Share on other sites
cmunns

The second request is not possible at this time, but if you want your secondary sidebar to show on all category pages you can edit the functions_sidebars.php so that this line: `<?php if(m_pagelines('the_sidebar', $post->ID) == 'secondary'):?>` looks like : `<?php if(m_pagelines('the_sidebar', $post->ID) == 'secondary' || (is_category())):?>`

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

Sign in to follow this  

×