<?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: index top widget for category page?</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 23 May 2013 00:26:55 +0000</pubDate>

<item>
<title>helgatheviking on "index top widget for category page?"</title>
<link>http://themeshaper.com/forums/topic/index-top-widget-for-category-page#post-26740</link>
<pubDate>Tue, 01 May 2012 23:54:06 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26740@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;ugh, i don't really advise switching everything to pages.  it is inefficient from a query standpoint.  the blog template is going to one day be deprecated too.
&#60;/p&#62;</description>
</item>
<item>
<title>bhomatude on "index top widget for category page?"</title>
<link>http://themeshaper.com/forums/topic/index-top-widget-for-category-page#post-26738</link>
<pubDate>Tue, 01 May 2012 23:01:43 +0000</pubDate>
<dc:creator>bhomatude</dc:creator>
<guid isPermaLink="false">26738@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks Helga -- yes the widget I added was not in the correct place. I actually just wanted that index top widget to also display on category pages. I ended up just changing all my category pages to pages that displayed categorized posts. That allowed me to continue using the index top widget.&#60;/p&#62;
&#60;p&#62;But I'm going to take a look at your suggestion here for the future.&#60;/p&#62;
&#60;p&#62;Thanks again for your help!
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "index top widget for category page?"</title>
<link>http://themeshaper.com/forums/topic/index-top-widget-for-category-page#post-26727</link>
<pubDate>Tue, 01 May 2012 13:56:27 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26727@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;what's wrong with the header widget you've created?  is it in the wrong place or do you only want it to display on category pages?&#60;/p&#62;
&#60;p&#62;you could either adjust your conditional logic for displaying the dynamic_sidebar like so:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// adding the widget area to your child theme
function my_header_widgets() {
if ( function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;#38;&#38;#38; is_sidebar_active(&#38;#39;header-aside&#38;#39;) &#38;#38;&#38;#38; is_category()) {
    echo &#38;#39;&#38;lt;div id=&#38;quot;header-aside&#38;quot; class=&#38;quot;aside&#38;quot;&#38;gt;&#38;#39;. &#38;quot;\n&#38;quot; . &#38;#39;&#38;lt;ul class=&#38;quot;xoxo&#38;quot;&#38;gt;&#38;#39; . &#38;quot;\n&#38;quot;;
    dynamic_sidebar(&#38;#39;header-aside&#38;#39;);
    echo &#38;#39;&#38;#39; . &#38;quot;\n&#38;quot; . &#38;#39;&#38;lt;/div&#38;gt;&#38;lt;!-- #header-aside .aside --&#38;gt;&#38;#39;. &#38;quot;\n&#38;quot;;
}
}
add_action(&#38;#39;thematic_belowheader&#38;#39;, &#38;#39;my_header_widgets&#38;#39;, 8);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;or you could put it on a hook that only displays on category pages, such as thematic_above_categoryloop() (which is also in a slightly different position)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// adding the widget area to your child theme
function my_header_widgets() {
if ( function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;#38;&#38;#38; is_sidebar_active(&#38;#39;header-aside&#38;#39;) ) {
    echo &#38;#39;&#38;lt;div id=&#38;quot;header-aside&#38;quot; class=&#38;quot;aside&#38;quot;&#38;gt;&#38;#39;. &#38;quot;\n&#38;quot; . &#38;#39;&#38;lt;ul class=&#38;quot;xoxo&#38;quot;&#38;gt;&#38;#39; . &#38;quot;\n&#38;quot;;
    dynamic_sidebar(&#38;#39;header-aside&#38;#39;);
    echo &#38;#39;&#38;#39; . &#38;quot;\n&#38;quot; . &#38;#39;&#38;lt;/div&#38;gt;&#38;lt;!-- #header-aside .aside --&#38;gt;&#38;#39;. &#38;quot;\n&#38;quot;;
}
}
add_action(&#38;#39;thematic_above_categoryloop&#38;#39;, &#38;#39;my_header_widgets&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>bhomatude on "index top widget for category page?"</title>
<link>http://themeshaper.com/forums/topic/index-top-widget-for-category-page#post-26725</link>
<pubDate>Tue, 01 May 2012 00:55:03 +0000</pubDate>
<dc:creator>bhomatude</dc:creator>
<guid isPermaLink="false">26725@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm currently using the index top widget area for the posts page, but I'd also like to use it for all my category pages. Perhaps I need to add another widget area specifically for this? If so, what would I hook into ? I'm successfully adding a widget below the header (see code below) but that's not really what I want to do.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//add widget below header

// This will create your widget area
function my_widgets_init() {
    register_sidebar(array(
       	&#38;#39;name&#38;#39; =&#38;gt; &#38;#39;Header Aside&#38;#39;,
       	&#38;#39;id&#38;#39; =&#38;gt; &#38;#39;header-aside&#38;#39;,
       	&#38;#39;before_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;li id=&#38;quot;%1$s&#38;quot; class=&#38;quot;widgetcontainer %2$s&#38;quot;&#38;gt;&#38;#39;,
       	&#38;#39;after_widget&#38;#39; =&#38;gt; &#38;quot;&#38;quot;,
		&#38;#39;before_title&#38;#39; =&#38;gt; &#38;quot;&#38;lt;h3 class=\&#38;quot;widgettitle\&#38;quot;&#38;gt;&#38;quot;,
		&#38;#39;after_title&#38;#39; =&#38;gt; &#38;quot;&#38;lt;/h3&#38;gt;\n&#38;quot;,
    ));

}
add_action( &#38;#39;init&#38;#39;, &#38;#39;my_widgets_init&#38;#39; );

// adding the widget area to your child theme
function my_header_widgets() {
if ( function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;#38;&#38;#38; is_sidebar_active(&#38;#39;header-aside&#38;#39;) ) {
    echo &#38;#39;&#38;lt;div id=&#38;quot;header-aside&#38;quot; class=&#38;quot;aside&#38;quot;&#38;gt;&#38;#39;. &#38;quot;\n&#38;quot; . &#38;#39;&#38;lt;ul class=&#38;quot;xoxo&#38;quot;&#38;gt;&#38;#39; . &#38;quot;\n&#38;quot;;
    dynamic_sidebar(&#38;#39;header-aside&#38;#39;);
    echo &#38;#39;&#38;#39; . &#38;quot;\n&#38;quot; . &#38;#39;&#38;lt;/div&#38;gt;&#38;lt;!-- #header-aside .aside --&#38;gt;&#38;#39;. &#38;quot;\n&#38;quot;;
}
}
add_action(&#38;#39;thematic_belowheader&#38;#39;, &#38;#39;my_header_widgets&#38;#39;, 8);

//end add widget below header&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
