Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Revision 366 - Remove Sidebar http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Wed, 27 May 2015 09:44:12 +0000 Chris on "Revision 366 - Remove Sidebar" http://forums.themeshaper.com/topic/revision-366-remove-sidebar#post-2296 Sat, 14 Mar 2009 10:29:37 +0000 Chris 2296@http://forums.themeshaper.com/ <p>Sorry .. missed the bracket .. will start to re-test all of my code snippets today and publish these snippets including downloads on my website. Availability and link will be published 'til Sunday.</p> <p>Cheers,</p> <p>Chris </p> demetris on "Revision 366 - Remove Sidebar" http://forums.themeshaper.com/topic/revision-366-remove-sidebar#post-2290 Fri, 13 Mar 2009 20:33:43 +0000 demetris 2290@http://forums.themeshaper.com/ <p>It seems a closing parenthesis is missing in the example. The <code>if</code> line should read:</p> <p><code>if (is_page(&#39;1&#39;)) {</code></p> <p>Edit: Didn’t notice your EDIT. :-D </p> bucks14 on "Revision 366 - Remove Sidebar" http://forums.themeshaper.com/topic/revision-366-remove-sidebar#post-2287 Fri, 13 Mar 2009 18:05:21 +0000 bucks14 2287@http://forums.themeshaper.com/ <p>I'm getting an error using the second piece of code. I've tried different page ids. Seems to work fine without the page selection. Any ideas?</p> <p>&lt;?php<br /> function kill_sidebar() {<br /> if (is_page('7') {<br /> return FALSE;<br /> } else {<br /> return TRUE;<br /> }<br /> }<br /> add_action('thematic_sidebar', 'kill_sidebar');<br /> ?&gt;</p> <p>EDIT: missing a bracket, problem solved. </p> Chris on "Revision 366 - Remove Sidebar" http://forums.themeshaper.com/topic/revision-366-remove-sidebar#post-1730 Tue, 17 Feb 2009 12:44:15 +0000 Chris 1730@http://forums.themeshaper.com/ <p>Upon request:</p> <p>The main sidebar is now switchable using a filter in your functions.php:</p> <p><code><br /> function kill_sidebar() {<br /> return FALSE;<br /> }<br /> add_action('thematic_sidebar', 'kill_sidebar');<br /> </code></p> <p>This will remove the sidebar everywhere on your blog. If you want to remove it only on a certain page, you can use this one:</p> <p><code><br /> function kill_sidebar() {<br /> if (is_page('1') {<br /> return FALSE;<br /> } else {<br /> return TRUE;<br /> }<br /> }<br /> add_action('thematic_sidebar', 'kill_sidebar');<br /> </code></p> <p>Keep in mind that this will completely prevent the execution of sidebar.php</p> <p>Cheers,</p> <p>Chris </p>