Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] Customized Sidebars for Different Pages (http://forum.bytesforall.com/showthread.php?t=13568)

Hannah91 Mar 30, 2011 03:48 PM

[SOLVED] Customized Sidebars for Different Pages
 
I tried searching through for this but I don't see it anywhere. If anyone has asked the same question, I would appreciate being linked!

What I basically want to do is create a few of the same sidebar (particularly the left sidebar), but with different content, that I can display on different pages. I know I can already do two different versions (using the inner left and the left), but is there any way I could get five? Then I could select which pages each side bar shows up on.

I would have like Left Sidebar 1, Left Sidebar 2, 3, 4,5... and then pick which pages each one shows up on.

The only thing I found was to edit the functions.php code. Should I go ahead and just do that or are there any other options?

Thank you!

juggledad Mar 30, 2011 03:52 PM

go look at the plugin 'widget logic'

Hannah91 Mar 31, 2011 01:41 PM

I really like this solution, thank you so much!

For anyone who is curious, you can add separate content onto whatever sidebar you want Widget Logic allows you to choose exactly what content applies to what page on the sidebar you applied it to using Conditional Tags (http://codex.wordpress.org/Conditional_Tags).

For example, let's say I have three pages: Hello, Goodbye, and Welcome. If I want a separate link bar for each of these pages on the left sidebar, I simply insert three different widgets into the left sidebar and then under the widget filter you simple put in the condition (is_page('Hello'), is_page('Goodbye'), is_page('Welcome')).

:D No extra sidebars needed.


All times are GMT -6. The time now is 07:35 PM.

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