<?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 Tag: modifying functions.php</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 18 Jun 2013 06:11:44 +0000</pubDate>

<item>
<title>helgatheviking on "get rid of subsidiaries on certain page templates"</title>
<link>http://themeshaper.com/forums/topic/get-rid-of-subsidiaries-on-certain-page-templates#post-15326</link>
<pubDate>Thu, 02 Sep 2010 12:14:35 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">15326@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;cool.  don't forget to mark this as resolved.  there is totally a way to do this w/ functions and actually REMOVE the content versus just hiding it, i just can't figure it out quickly.  even though gene has explained it to be several times i always struggle w/ the template conditionals.
&#60;/p&#62;</description>
</item>
<item>
<title>j.dalen on "get rid of subsidiaries on certain page templates"</title>
<link>http://themeshaper.com/forums/topic/get-rid-of-subsidiaries-on-certain-page-templates#post-15323</link>
<pubDate>Thu, 02 Sep 2010 07:49:08 +0000</pubDate>
<dc:creator>j.dalen</dc:creator>
<guid isPermaLink="false">15323@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;perfect. thanks for the tip and feeling a bit foolish for not using View source on the pages to check for body classes generated.  Thanks for your help, this is a very good tidbit of info for all future projects as well!
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "get rid of subsidiaries on certain page templates"</title>
<link>http://themeshaper.com/forums/topic/get-rid-of-subsidiaries-on-certain-page-templates#post-15299</link>
<pubDate>Wed, 01 Sep 2010 14:02:20 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">15299@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;if you didn't mess w/ it you should have a whole slew of body classes&#60;/p&#62;
&#60;p&#62;for instance here is a page that is using a template called magazine on a page of mine:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;body class=&#38;quot;wordpress blogid-1 y2010 m09 d01 h09 home singular slug-blog page pageid-218 page-author-kathy page-comments-open page-pings-open page-template page-template-template-magazine-php windows firefox ff3&#38;quot;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;you will notice that there IS already a body class for a page that is using a page-template AND one for the specific template itself.&#60;/p&#62;
&#60;p&#62;if your template file is called template-home.php then your CSS would look like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;.page-template-template=home-php #subsidiary {
  display: none;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>j.dalen on "get rid of subsidiaries on certain page templates"</title>
<link>http://themeshaper.com/forums/topic/get-rid-of-subsidiaries-on-certain-page-templates#post-15294</link>
<pubDate>Wed, 01 Sep 2010 08:02:47 +0000</pubDate>
<dc:creator>j.dalen</dc:creator>
<guid isPermaLink="false">15294@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;thanks for the debugging tip!    But still not sure how to 'hide' the subsidiaries area I created on the home page template, on the other page templates that I've created.  Is there a way to call a page template into the css stylesheet?&#60;/p&#62;
&#60;p&#62;ie. &#60;/p&#62;
&#60;p&#62; .main_pagetpl #subsidiary {&#60;br /&#62;
display:none;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;I found this link which points me in the right direction...can someone help me figure out how to add a class to #main within this loop in the page template?&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;/p&#62;
&#60;p&#62;    // calling the header.php&#60;br /&#62;
    get_header();&#60;/p&#62;
&#60;p&#62;    // action hook for placing content above #container&#60;br /&#62;
    thematic_abovecontainer();&#60;/p&#62;
&#60;p&#62;?&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "get rid of subsidiaries on certain page templates"</title>
<link>http://themeshaper.com/forums/topic/get-rid-of-subsidiaries-on-certain-page-templates#post-15247</link>
<pubDate>Tue, 31 Aug 2010 12:25:26 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">15247@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;that code looks familiar to me.... though i am not sure thematic_belowmainasides is the right hook (i just dont remember off the top of my head right now).  but try it again w/ fixing ehe error in your add_filter&#60;/p&#62;
&#60;p&#62;// Connect the filter to thematic_subsidiaries()&#60;br /&#62;
add_filter('thematic_belowmainasides()', 'remove_widget_area_subsidiaries');&#60;/p&#62;
&#60;p&#62;should read&#60;/p&#62;
&#60;p&#62;// Connect the filter to thematic_subsidiaries()&#60;br /&#62;
add_filter('thematic_belowmainasides', 'remove_widget_area_subsidiaries');&#60;/p&#62;
&#60;p&#62;note- the no () in the function names.&#60;/p&#62;
&#60;p&#62;you will catch errors like that if you use a text editor w/ syntax highlighting like notepad++, which is free.  you should also turn on error reporting in your wp-config.php file as i'm surprised that one didn't kick up a php error w/ unexpected ) characters.  open it, search for WP_DEBUG... it is currently set to false.  set it to true while you are in development.
&#60;/p&#62;</description>
</item>
<item>
<title>him on "get rid of subsidiaries on certain page templates"</title>
<link>http://themeshaper.com/forums/topic/get-rid-of-subsidiaries-on-certain-page-templates#post-15232</link>
<pubDate>Tue, 31 Aug 2010 07:46:30 +0000</pubDate>
<dc:creator>him</dc:creator>
<guid isPermaLink="false">15232@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;just reduce the footer height, and i think you will take care of the empty space. Works in firebug on your site.
&#60;/p&#62;</description>
</item>
<item>
<title>j.dalen on "get rid of subsidiaries on certain page templates"</title>
<link>http://themeshaper.com/forums/topic/get-rid-of-subsidiaries-on-certain-page-templates#post-15227</link>
<pubDate>Mon, 30 Aug 2010 22:23:04 +0000</pubDate>
<dc:creator>j.dalen</dc:creator>
<guid isPermaLink="false">15227@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Can someone help me modify the above code to get rid of subsidiaries on certain page templates? I have already moved the subsidiary section under _belowmainasides (so it is within the main container, above the footer).  The website under development is &#60;a href=&#34;http://clearing.dalenhosting.com.&#34; rel=&#34;nofollow&#34;&#62;http://clearing.dalenhosting.com.&#60;/a&#62;  You'll see the subsidiaries on the home page but want to get rid of the empty space on subsequent pages.&#60;/p&#62;
&#60;p&#62;I tried the below, but it's incorrect:&#60;/p&#62;
&#60;p&#62;// filter thematic_subsidiaries ... switch off on certain page templates and blog page&#60;br /&#62;
function remove_belowmainasides() {&#60;br /&#62;
// We test if we are on the front page&#60;br /&#62;
if (is_page('standard') or is_single()) {&#60;br /&#62;
// Yes, we are .. leave on&#60;br /&#62;
return TRUE;&#60;br /&#62;
} else {&#60;br /&#62;
// we are not .. switch off&#60;br /&#62;
return FALSE;&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
// Connect the filter to thematic_subsidiaries()&#60;br /&#62;
add_filter('thematic_belowmainasides()', 'remove_widget_area_subsidiaries');&#60;/p&#62;
&#60;p&#62;The dev site is &#60;a href=&#34;http://clearing.dalenhosting.com&#34; rel=&#34;nofollow&#34;&#62;http://clearing.dalenhosting.com&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
