<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Revision 366 - Remove Sidebar</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 25 May 2013 14:24:23 +0000</pubDate>

<item>
<title>Chris on "Revision 366 - Remove Sidebar"</title>
<link>http://themeshaper.com/forums/topic/revision-366-remove-sidebar#post-2296</link>
<pubDate>Sat, 14 Mar 2009 10:29:37 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2296@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>demetris on "Revision 366 - Remove Sidebar"</title>
<link>http://themeshaper.com/forums/topic/revision-366-remove-sidebar#post-2290</link>
<pubDate>Fri, 13 Mar 2009 20:33:43 +0000</pubDate>
<dc:creator>demetris</dc:creator>
<guid isPermaLink="false">2290@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;It seems a closing parenthesis is missing in the example.  The &#60;code&#62;if&#60;/code&#62; line should read:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;if (is_page(&#38;#39;1&#38;#39;)) {&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Edit:  Didn’t notice your EDIT. :-D
&#60;/p&#62;</description>
</item>
<item>
<title>bucks14 on "Revision 366 - Remove Sidebar"</title>
<link>http://themeshaper.com/forums/topic/revision-366-remove-sidebar#post-2287</link>
<pubDate>Fri, 13 Mar 2009 18:05:21 +0000</pubDate>
<dc:creator>bucks14</dc:creator>
<guid isPermaLink="false">2287@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;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?&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
function kill_sidebar() {&#60;br /&#62;
if (is_page('7') {&#60;br /&#62;
return FALSE;&#60;br /&#62;
} else {&#60;br /&#62;
return TRUE;&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_sidebar', 'kill_sidebar');&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;EDIT: missing a bracket, problem solved.
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Revision 366 - Remove Sidebar"</title>
<link>http://themeshaper.com/forums/topic/revision-366-remove-sidebar#post-1730</link>
<pubDate>Tue, 17 Feb 2009 12:44:15 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">1730@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Upon request:&#60;/p&#62;
&#60;p&#62;The main sidebar is now switchable using a filter in your functions.php:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
function kill_sidebar() {&#60;br /&#62;
  return FALSE;&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_sidebar', 'kill_sidebar');&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;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:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
function kill_sidebar() {&#60;br /&#62;
  if (is_page('1') {&#60;br /&#62;
    return FALSE;&#60;br /&#62;
  } else {&#60;br /&#62;
    return TRUE;&#60;br /&#62;
  }&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_sidebar', 'kill_sidebar');&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Keep in mind that this will completely prevent the execution of sidebar.php&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>

</channel>
</rss>
