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 » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] Customized Sidebars for Different Pages


  #1  
Old Mar 30, 2011, 03:48 PM
Hannah91
 
2 posts · Mar 2011
[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!
  #2  
Old Mar 30, 2011, 03:52 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
go look at the plugin 'widget logic'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 31, 2011, 01:41 PM
Hannah91
 
2 posts · Mar 2011
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.

Bookmarks

Tags
customize sidebar, different sidebar, sidebar

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot remove sidebars from pages duevelocita Sidebars & Widgets 10 Jan 28, 2011 06:32 AM
How to configure different sidebars to pages Stingraynut Sidebars & Widgets 3 Jul 14, 2010 05:43 PM
[SOLVED] Different sidebars for different pages simonelli Sidebars & Widgets 4 Jun 14, 2010 07:59 AM
Customized Atahualpa 404 Pages Jurgen Estanislao Forum How-To 2 May 28, 2010 01:02 AM
different sidebars on different pages scacinto Sidebars & Widgets 8 Aug 7, 2009 06:57 AM


All times are GMT -6. The time now is 07:46 AM.


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