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 »

Disabling sidebar for specific post-page


  #1  
Old Mar 27, 2009, 09:50 AM
vi8084
 
22 posts · Jan 2009
Thanks so much for your time, Flynn!

Quick question: Can I disable my sidebar for a specific post-page? Or even all the post-pages of a specific category?

In the "sidebar" section of your interface you can disable sidebars for the "category page", but:

"This will turn on/off sidebars on category pages (pages that list the posts in the given category), but not on "all single post pages of posts in category XX". "

I DO need to turn off sidebars on "all single pages of posts in category XX."

Any ideas? Thanks again!
  #2  
Old Mar 27, 2009, 06:35 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
For the right sidebar, change

in header.php
PHP Code:
<?php if ( $right_col == "on" ) { ?>
to
PHP Code:
<?php if ( $right_col == "on" AND !is_single(array(17,'beef-stew','Irish Stew')) AND !( is_single() AND in_category('29'))  ) { ?>
and in footer.php
PHP Code:
<?php if ( $right_col == "on" ) { ?>
to
PHP Code:
<?php if ( $right_col == "on" AND !is_single(array(17,'beef-stew','Irish Stew')) AND !( is_single() AND in_category('29')) ) { ?>
to not display the right sidebar on the single post pages of posts...
  • with the ID 17
  • with the name "beef-stew"
  • with the title "Irish Stew"
  • that are filed under the category with the ID 29
  #3  
Old Mar 10, 2010, 04:28 PM
ortixia
 
48 posts · Nov 2009
Salt Spring Island, BC, Canada
How could you alter this for the left side bar, since there is not left col. or left col 2 in footer.php.
I am having some absolutely crazy results on one of the pages that i want this bar.
  #4  
Old Mar 10, 2010, 04:36 PM
ortixia
 
48 posts · Nov 2009
Salt Spring Island, BC, Canada
I inserted the following code to header.php:
PHP Code:
<?php if ( $bfa_ata['left_col2'] == "on"  AND ( is_single() AND in_category('30'))  ) { ?><col class="colone-inner" /><?php ?>

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Full Post Text on specific category pages spencer Atahualpa 3 Wordpress theme 1 Jul 7, 2009 02:47 PM
Disabling the LEFT BORDER for LINKS in the Sidebar ianuy Sidebars & Widgets 3 May 17, 2009 05:17 AM
Page Specific Logos drewpasmith Header configuration & styling 15 May 12, 2009 06:45 AM
disabling left navigation silentone Atahualpa 3 Wordpress theme 3 Mar 9, 2009 07:38 AM
How to disable sidebar(s) for specific page/page? gesman Sidebars & Widgets 3 Feb 8, 2009 09:05 PM


All times are GMT -6. The time now is 03:01 PM.


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