Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

How to customize sidebars based on page


  #1  
Old May 4, 2009, 03:21 AM
guacamoly
 
3 posts · May 2009
Does any one know how to customize the sidebar content based on what page is currently being viewed?

Also Is there a way to add items to a sidebar without it being a widget?

Thanks a lot
  #2  
Old May 5, 2009, 05:46 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
CSS Insert:

body#body-page-13 td#right div.widget {
...
}

This would address all widgets in the right sidebar on the page with the ID 13

Look into the source code to see the ID and classes that are being added to the <BODY> tag for every page

The text widget is transparent, you can leave out the title and then it'd be like manually editing the sidebars. If you still want to manually edit the sidebars put your code into header.php (left sidebar) or footer.php (right sidebar) before or after

PHP Code:
            <?php // Widgetize the Left Sidebar
            
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) :
            endif; 
?>
In some theme versions there's some text after the :

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to customize 404 error page? wfzimmerman Atahualpa 3 Wordpress theme 21 Oct 2, 2016 06:50 PM
Sidebars are still on static home page, won't go away. krystyna Sidebars & Widgets 1 May 25, 2009 06:01 PM
Removing sidebars for one page - is it possible ? Paul33 Sidebars & Widgets 1 May 14, 2009 03:22 PM
Best way to have different sidebars for each Page Eric Bobrow Sidebars & Widgets 1 Apr 27, 2009 10:26 AM
How do I get Sidebars to appaer on Posts page? martinh Atahualpa 3 Wordpress theme 4 Apr 12, 2009 09:52 AM


All times are GMT -6. The time now is 02:43 AM.


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