<?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: Remove widgetized areas except from home page</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Fri, 24 May 2013 14:44:37 +0000</pubDate>

<item>
<title>middlesister on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21269</link>
<pubDate>Thu, 12 May 2011 19:32:02 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21269@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Its just that the &#60;code&#62;init&#60;/code&#62; action fires really really early in the process, and the conditionals have not been set yet. If you need them, you need to add your action somewhere later. I don't really know all the wordpress actions or their order, but I have seen template_redirect been recommended before when there was a need for conditionals to work. I guess that template_redirect is used somewhere around fetching the right template page, so the conditinals &#60;em&#62;definitely&#60;/em&#62; need to be set by then.
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21268</link>
<pubDate>Thu, 12 May 2011 19:03:46 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21268@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks for the explanation. I've now been better edumacated on how Thematic works and what's really possible! :)&#60;/p&#62;
&#60;p&#62;EDIT: Oooh ooh. One more. What's the &#60;code&#62;template_redirect&#60;/code&#62; for? Haven't seen that used before.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21264</link>
<pubDate>Thu, 12 May 2011 18:50:26 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21264@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Digging deeeep in the souce code. ;)&#60;/p&#62;
&#60;p&#62;No, really, the actions and order of thematic_footer are in footer_extensions.php and the action hooks for subsidiaries can be found in sidebar-extensions.php. I did a folderwise search for &#34;&#60;code&#62;widget_area_subsidiaries()&#60;/code&#62;&#34;, and they all popped up in the results. There really are action hooks everywhere -  &#60;code&#62;thematic_before_first_sub()&#60;/code&#62;, &#60;code&#62;thematic_between_firstsecond_sub()&#60;/code&#62;, &#60;code&#62;thematic_between_secondthird_sub()&#60;/code&#62;  etc. &#60;/p&#62;
&#60;p&#62;Not all actions have priorities, but the ones added to &#60;code&#62;thematic_header&#60;/code&#62; and &#60;code&#62;thematic_footer&#60;/code&#62; have for sure. This makes it easy to switch the order of the div's around if you want. I haven't read about it in the docs either, but now we know the widget_area_subsidiaries have priorities too.
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21263</link>
<pubDate>Thu, 12 May 2011 18:28:31 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21263@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Last question, and this is for my personal knowledge, where did you come up with the order number for subsidiaries? I know we're supposed to use them with removing actions, but I never read anywhere in the docs about subsidiaries having an order.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21262</link>
<pubDate>Thu, 12 May 2011 18:23:14 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21262@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Phew finally! :-D&#60;/p&#62;
&#60;p&#62;I wonder too. From what I see, &#60;code&#62;widget_area_subsidiaries()&#60;/code&#62; is actually an action hook to which all the subsidiaries gets attached. My last resort would have been to unhook them all in order and add them conditionally back again, but I'm glad this worked too. I guess the hook function could not be conditionally replaced with the childtheme_override, don't really understand why though.
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21261</link>
<pubDate>Thu, 12 May 2011 18:11:36 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21261@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;That actually worked. I wonder why that is. Is there any other info you want from me to try and get to the bottom of this?&#60;/p&#62;
&#60;p&#62;Thanks for the patience and help!
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21260</link>
<pubDate>Thu, 12 May 2011 18:01:22 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21260@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hm. Does it work if we go the add/remove action route?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function remove_subsidiaries() {
	remove_action(&#38;#39;thematic_footer&#38;#39;, &#38;#39;thematic_subsidiaries&#38;#39;, 10);
}
add_action(&#38;#39;init&#38;#39; , &#38;#39;remove_subsidiaries&#38;#39; );

function readding_subsidiaries() {
	if( is_front_page() ) {
		add_action(&#38;#39;thematic_footer&#38;#39;, &#38;#39;thematic_subsidiaries&#38;#39;, 10);
	}
}
add_action(&#38;#39;template_redirect&#38;#39; , &#38;#39;readding_subsidiaries&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21259</link>
<pubDate>Thu, 12 May 2011 17:43:29 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21259@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;It definitely is front-page. I've used that to test. And still nothing even with the conditional statement. I.Am.Stumped.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21258</link>
<pubDate>Thu, 12 May 2011 17:40:25 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21258@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Well I can't see anything from the top of my mind. I guess you can clearly see that the template is used on the front page. Have you tried putting anything else in another action hook, just to see if is_front_page() works at all? Something like&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function front_page_test() {
    if ( is_front_page() ) {
        echo &#38;#39;bacon!&#38;#39;;
    }
}
add_action(&#38;#39;thematic_abovecontent&#38;#39; , &#38;#39;front_page_test&#38;#39;)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Otherwise, maybe you could try &#60;code&#62;is_page_template(&#38;#39;front-page.php&#38;#39;)&#60;/code&#62; for the conditional in the childtheme_override function...
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21257</link>
<pubDate>Thu, 12 May 2011 17:23:47 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21257@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;No, not in that template, but I am in another one in my child theme root for a Nivo Slider. Here is the code for my front-page.php&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*

 Template Name: Front Page

 */

    // calling the header.php
    get_header();

    // action hook for placing content above #container
    thematic_abovecontainer();

?&#38;gt;

		&#38;lt;div id=&#38;quot;container&#38;quot; class=&#38;quot;dv-front&#38;quot;&#38;gt;

			&#38;lt;?php thematic_abovecontent(); ?&#38;gt;

			&#38;lt;div id=&#38;quot;content&#38;quot; class=&#38;quot;dv-front&#38;quot;&#38;gt;
	          &#38;lt;?php /*
				&#38;lt;div id=&#38;quot;slider&#38;quot; class=&#38;quot;&#38;lt;?php echo (is_home()) ? &#38;#39;home&#38;#39; : &#38;#39;normal&#38;#39;; ?&#38;gt;&#38;quot;&#38;gt;
					&#38;lt;?php
				    $tmp = $wp_query;
				    $wp_query = new WP_Query(&#38;#39;posts_per_page=3&#38;#38;category_name=hero&#38;#39;);
				    if(have_posts()) : while(have_posts()) : the_post();
				    ?&#38;gt;
				    	&#38;lt;?php the_post_thumbnail(&#38;#39;nivoFront&#38;#39;); ?&#38;gt;
				    &#38;lt;?php
				    endwhile; endif;
					$wp_query = $tmp;
				    ?&#38;gt;
		*/ ?&#38;gt;
				&#38;lt;?php /*?&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;!-- close #slider --&#38;gt;&#38;lt;?php */?&#38;gt;

	        &#38;lt;?php

	        thematic_belowpost();

	        // calling the comments template
	        thematic_comments_template();

	        // calling the widget area &#38;#39;page-bottom&#38;#39;
	        get_sidebar(&#38;#39;page-bottom&#38;#39;);

	        ?&#38;gt;

			&#38;lt;/div&#38;gt;&#38;lt;!-- #content --&#38;gt;

			&#38;lt;?php thematic_belowcontent(); ?&#38;gt; 

		&#38;lt;/div&#38;gt;&#38;lt;!-- #container --&#38;gt;
	&#38;lt;div id=&#38;quot;clear&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
&#38;lt;?php 

    // action hook for placing content below #container
    thematic_belowcontainer();

    // calling footer.php
    get_footer();

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The query I have there is commented out, and will be used for use later. I will have to reset that, since I haven't already in that code. But mayeb you can see something else in here that is causing the problem.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21256</link>
<pubDate>Thu, 12 May 2011 17:12:42 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21256@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yes, front-page.php will override that and get used. &#60;/p&#62;
&#60;p&#62;Are you by any chance using query_posts() in that template? It will change the global values of $wp_query so some conditionals will no longer be the same. Take a look at &#60;a href=&#34;http://themeshaper.com/forums/topic/multiple-loops-demystified#post-21144,&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/multiple-loops-demystified#post-21144,&#60;/a&#62; and make sure that the global values are restored. Otherwise, wordpress will no longer know that it is on the front page.
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21255</link>
<pubDate>Thu, 12 May 2011 17:03:38 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21255@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;haha. I guess it's not. it is set to latest posts, but I thought front-page.php overrides that. I did try is_home() and still nothing. I feel like a dam amateur over here!!
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21254</link>
<pubDate>Thu, 12 May 2011 17:00:27 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21254@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You don't have your home page set? Is that even possible? :-)&#60;/p&#62;
&#60;p&#62;What does your wordpress settings say, a static page or the blog page?
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21252</link>
<pubDate>Thu, 12 May 2011 16:53:02 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21252@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;This is super annoying. I don't have my home page set. Front-page.php is the home. Not sure what to do now.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21251</link>
<pubDate>Thu, 12 May 2011 16:47:01 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21251@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Weird. I tried it on a test install and it works for me. The name of the function is just like I wrote - &#60;code&#62;childtheme_override_subsidiaries()&#60;/code&#62;. Place it straight in your functions.php and not inside another function. You don't need any add_action or add_filter for it to get used.&#60;/p&#62;
&#60;p&#62;This code will only add the subsidiaries widget on the front page and not to any other pages. You can also try with &#60;code&#62;is_home()&#60;/code&#62; if your front page is your blog page.
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21249</link>
<pubDate>Thu, 12 May 2011 16:34:28 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21249@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Nevermind... wasn't using &#60;code&#62;childtheme_override_widget_area_subsidiaries&#60;/code&#62;. Works like a charm now. Thanks. Now I'm more familiar with child theme overrides.&#60;/p&#62;
&#60;p&#62;EDIT: I lied. The widgets are back with that last change in code... I can't figure this out for the life of me.
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21248</link>
<pubDate>Thu, 12 May 2011 16:30:22 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21248@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hmmm... I tested without the filter and still the same result. Not sure what the culprit is.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21247</link>
<pubDate>Thu, 12 May 2011 16:11:15 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21247@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You don't need to apply any filters when you use a childtheme_override. Thematic will see your function and use it instead of the original.
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21244</link>
<pubDate>Thu, 12 May 2011 16:00:50 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21244@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I guess I'm missing something. When I use that and apply the filter, it removes it from all pages, including the front page...
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21243</link>
<pubDate>Thu, 12 May 2011 15:35:36 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21243@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;How about a childtheme override?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_subsidiaries() {
	if( is_front_page() ) {
		widget_area_subsidiaries();
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21242</link>
<pubDate>Thu, 12 May 2011 15:05:48 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21242@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;anyone have any input on this one?
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21211</link>
<pubDate>Tue, 10 May 2011 18:30:45 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21211@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Sorry, I forgot to specify the subsidiary-aside widgets in the footer...
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21185</link>
<pubDate>Mon, 09 May 2011 20:34:13 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">21185@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;if you want to turn off the sidebar you'd do:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function kill_sidebar() {
  if (is_front_page()) {
    return TRUE;
  } else {
    return FALSE;
  }
}
add_action(&#38;#39;thematic_sidebar&#38;#39;, &#38;#39;kill_sidebar&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;killing all the rest of the widgets is possible but more involved
&#60;/p&#62;</description>
</item>
<item>
<title>chris_s on "Remove widgetized areas except from home page"</title>
<link>http://themeshaper.com/forums/topic/remove-widgetized-areas-except-from-homepage#post-21182</link>
<pubDate>Mon, 09 May 2011 19:35:10 +0000</pubDate>
<dc:creator>chris_s</dc:creator>
<guid isPermaLink="false">21182@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I want to be able to remove the widgetized areas from all pages except the home page. &#60;/p&#62;
&#60;p&#62;I attempted it with this code but came up with the following errors.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function remove_widget_areas($content) {
	if(!is_front_page()) {
	  unset($content[&#38;#39;1st Subsidiary Aside&#38;#39;]);
	  unset($content[&#38;#39;2nd Subsidiary Aside&#38;#39;]);
	  unset($content[&#38;#39;3rd Subsidiary Aside&#38;#39;]);
  return $content;
	}
}

add_filter(&#38;#39;thematic_widgetized_areas&#38;#39;, &#38;#39;remove_widget_areas&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;errors:&#60;/p&#62;
&#60;p&#62;Warning: asort() expects parameter 1 to be array, null given in /home1/brokeupc/public_html/dv/wp-content/themes/thematic/library/extensions/widgets-extensions.php on line 336&#60;/p&#62;
&#60;p&#62;Warning: Invalid argument supplied for foreach() in /home1/brokeupc/public_html/dv/wp-content/themes/thematic/library/extensions/widgets-extensions.php on line 325&#60;/p&#62;
&#60;p&#62;EDIT: I realize that what this code did was take them out of the admin. What I am trying to do is just have them &#60;code&#62;echo&#60;/code&#62; only on the home page.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
