<?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: Code Snippets</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 19:48:12 +0000</pubDate>

<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-5448</link>
<pubDate>Thu, 30 Jul 2009 14:42:25 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">5448@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;thanks a lot for your help! :)&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-5447</link>
<pubDate>Thu, 30 Jul 2009 14:39:43 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">5447@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;thanks a lot for your help! :)&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>d_rec on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-5446</link>
<pubDate>Thu, 30 Jul 2009 04:51:13 +0000</pubDate>
<dc:creator>d_rec</dc:creator>
<guid isPermaLink="false">5446@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Chris, I got your code to work by putting an extra closing bracket at the end&#60;/p&#62;
&#60;p&#62;if (is_page(array('home', 'gallery')))&#60;/p&#62;
&#60;p&#62;This is a great place to learn WP and php&#60;br /&#62;
d_rec
&#60;/p&#62;</description>
</item>
<item>
<title>awarner20 on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-5326</link>
<pubDate>Thu, 23 Jul 2009 23:48:09 +0000</pubDate>
<dc:creator>awarner20</dc:creator>
<guid isPermaLink="false">5326@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ha! Cool, I'll just leave as is for now and revisit this later. I'll just add more&#60;br /&#62;
&#60;code&#62;&#124;&#124; is_page()&#60;/code&#62;&#60;br /&#62;
as necessary:)&#60;/p&#62;
&#60;p&#62;Thanks Chris!
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-5320</link>
<pubDate>Thu, 23 Jul 2009 20:42:27 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">5320@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I hate it ;)&#60;/p&#62;
&#60;p&#62;Ok .. could take some time to find out if this is a problem with WordPress.&#60;/p&#62;
&#60;p&#62;First I need to fix the famous z-index bug in IE6 / IE7 for the PowerBlog theme.&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>awarner20 on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-5318</link>
<pubDate>Thu, 23 Jul 2009 19:14:27 +0000</pubDate>
<dc:creator>awarner20</dc:creator>
<guid isPermaLink="false">5318@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks Chris, I had tried that too and couldn't get it to work. I just tried again and I couldn't get it.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function remove_sidebar() {
	// We test if we are on these pages
if (is_page(array(&#38;#39;literature-request-form&#38;#39;, &#38;#39;residential-products&#38;#39;)) {
// Yes, we are .. now we switch off the sidebar
		return FALSE;
	} else {
		// we are not .. we leave the switch on
		return TRUE;
	}
}
// Connect the filter to thematic_sidebar()
add_filter(&#38;#39;thematic_sidebar&#38;#39;, &#38;#39;remove_sidebar&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What I did find to work for me was this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if (is_page(&#38;#39;literature-request-form&#38;#39;) &#124;&#124; is_page(&#38;#39;residential-products&#38;#39;)) {&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But I have a feeling that using an array would be more efficient. Does my code look correct?
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-5314</link>
<pubDate>Thu, 23 Jul 2009 18:40:14 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">5314@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Missing several tiny bits ;)&#60;/p&#62;
&#60;p&#62;It should be:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;is_page(array(&#38;#39;literature-request-form&#38;#39;, &#38;#39;residential-products&#38;#39;))&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>awarner20 on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-5308</link>
<pubDate>Thu, 23 Jul 2009 16:35:43 +0000</pubDate>
<dc:creator>awarner20</dc:creator>
<guid isPermaLink="false">5308@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Chris, great function, I'm using it with success. Quick question...can I designate several pages in the same function? I tried adding a page a couple different ways.&#60;/p&#62;
&#60;p&#62;Adding as comma separated list:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function remove_sidebar() {
	// We test if we are on the page &#38;#39;Literature Request Form&#38;#39;
	if (is_page(&#38;#39;literature-request-form,residential-products&#38;#39;)) {
		// Yes, we are .. now we switch off the sidebar
		return FALSE;
	} else {
		// we are not .. we leave the switch on
		return TRUE;
	}
}
// Connect the filter to thematic_sidebar()
add_filter(&#38;#39;thematic_sidebar&#38;#39;, &#38;#39;remove_sidebar&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This didn't work.&#60;/p&#62;
&#60;p&#62;Adding like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function remove_sidebar() {
	// We test if we are on the page &#38;#39;Literature Request Form&#38;#39;
	if (is_page(&#38;#39;literature-request-form&#38;#39;))
		// Yes, we are .. now we switch off the sidebar
	// We test if we are on the page &#38;#39;Residential Products&#38;#39;
	if (is_page(&#38;#39;residential-products&#38;#39;)) {
		// Yes, we are .. now we switch off the sidebar
		return FALSE;
	} else {
		// we are not .. we leave the switch on
		return TRUE;
	}
}
// Connect the filter to thematic_sidebar()
add_filter(&#38;#39;thematic_sidebar&#38;#39;, &#38;#39;remove_sidebar&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This removed the sidebar on ALL pages.&#60;/p&#62;
&#60;p&#62;I have a feeling I'm missing something simple. Can anyone advise?
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2440</link>
<pubDate>Fri, 20 Mar 2009 17:14:18 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2440@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;New article: &#60;a href=&#34;http://www.wupperpiraten.de/2009/03/how-to-remove-the-sidebar-from-a-certain-page/&#34;&#62;How to remove the sidebar from a certain page?&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2349</link>
<pubDate>Mon, 16 Mar 2009 22:57:52 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2349@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Perfect idea .. there's only one thing for me to check. Let's ask Ian if anything speaks against publishing my articles on his blog first. I would publish the German version on my site .. in this case the whole webring idea dealing with the same content in different languages would be consistent.&#60;/p&#62;
&#60;p&#62;And we would need some more people supporting this idea.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>dannydamnboy on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2344</link>
<pubDate>Mon, 16 Mar 2009 20:10:26 +0000</pubDate>
<dc:creator>dannydamnboy</dc:creator>
<guid isPermaLink="false">2344@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;in my opinion, we have to create a sort of webring:&#60;/p&#62;
&#60;p&#62;from wikiP:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;A webring in general is a collection of websites from around the Internet joined together in a circular structure. When used to improve search engine rankings, webrings can be considered a search engine optimization technique.&#60;/p&#62;
&#60;p&#62;To be a part of the webring, each site has a common navigation bar; it contains links to the previous and next site. By clicking next (or previous) repeatedly, the surfer will eventually reach the site they started at; this is the origin of the term webring. However, the click-through route around the ring is usually supplemented by a central site with links to all member-sites; this prevents the ring from breaking completely if a member site goes offline.&#60;/p&#62;
&#60;p&#62;Webrings are usually organized around a specific theme, often educational or social. Web rings usually have a moderator who decides which pages to include in the web ring. After approval, webmasters add their pages to the ring by 'linking in' to the ring; this requires adding the necessary HTML or JavaScript to their site.&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;only with links to different languages, not with the common navigation... in this way we could gain two (or more) linkbacks each... what do you think???
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2343</link>
<pubDate>Mon, 16 Mar 2009 20:06:07 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2343@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Feel free to translate it and use it on your blog.&#60;br /&#62;
Cheers,&#60;br /&#62;
Chris
&#60;/p&#62;</description>
</item>
<item>
<title>pauloc on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2340</link>
<pubDate>Mon, 16 Mar 2009 19:40:13 +0000</pubDate>
<dc:creator>pauloc</dc:creator>
<guid isPermaLink="false">2340@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;May I do the same to spanish?
&#60;/p&#62;</description>
</item>
<item>
<title>dannydamnboy on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2334</link>
<pubDate>Mon, 16 Mar 2009 17:02:01 +0000</pubDate>
<dc:creator>dannydamnboy</dc:creator>
<guid isPermaLink="false">2334@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thank you. But could I post &#34;that&#34; pic aside your name??? ;)
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2330</link>
<pubDate>Mon, 16 Mar 2009 13:52:46 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2330@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey Danny,&#60;/p&#62;
&#60;p&#62;Yes .. you can take this and all future content published for Thematic and translate it for your blog :-)&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>dannydamnboy on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2329</link>
<pubDate>Mon, 16 Mar 2009 11:59:55 +0000</pubDate>
<dc:creator>dannydamnboy</dc:creator>
<guid isPermaLink="false">2329@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey Chris, could I translaete the page ii italian (credtis to you, as always)???
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2315</link>
<pubDate>Sun, 15 Mar 2009 13:18:04 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2315@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Downloads addded.
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2314</link>
<pubDate>Sun, 15 Mar 2009 12:46:07 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2314@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks a lot, Danny!&#60;/p&#62;
&#60;p&#62;The first article &#60;a href=&#34;http://www.wupperpiraten.de/2009/03/how-to-use-a-different-layout-for-a-certain-page/&#34;&#62;How to use a different layout for a certain page?&#60;/a&#62; is online.&#60;/p&#62;
&#60;p&#62;Will attach all files for download to prevent character mess during copy &#38;#38; paste.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>dannydamnboy on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2311</link>
<pubDate>Sun, 15 Mar 2009 09:32:15 +0000</pubDate>
<dc:creator>dannydamnboy</dc:creator>
<guid isPermaLink="false">2311@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;This is great Chris!
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Code Snippets"</title>
<link>http://themeshaper.com/forums/topic/code-snippets#post-2308</link>
<pubDate>Sat, 14 Mar 2009 23:23:49 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2308@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;I hereby declare the bar officially open!&#60;/p&#62;
&#60;p&#62;Took me a while but finally the Code Snippets area on my blog is up and running and has its own RSS feed.&#60;/p&#62;
&#60;p&#62;At the moment there's nothing more than the Welcome Message. Starting tomorrow, I'll collect all my code snippets posted here, test everything once again and publish the code snippets on my site.&#60;/p&#62;
&#60;p&#62;This is the link to the Code Snippet Area: &#60;a href=&#34;http://www.wupperpiraten.de/kategorie/thematic/code_snippets/&#34;&#62;Code Snippets&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And here's the RSS Feed: &#60;a href=&#34;http://feeds2.feedburner.com/ThematicCodeSnippets&#34;&#62;Thematic - Code Snippets&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>

</channel>
</rss>
