<?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: Change the order widget areas are stacked</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 25 May 2013 23:17:58 +0000</pubDate>

<item>
<title>malinki on "Change the order widget areas are stacked"</title>
<link>http://themeshaper.com/forums/topic/change-the-order-widget-areas-are-stacked#post-18896</link>
<pubDate>Wed, 02 Feb 2011 10:46:59 +0000</pubDate>
<dc:creator>malinki</dc:creator>
<guid isPermaLink="false">18896@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ahh! Muchos gracias. My deadline looks achievable and a great weight has lifted from my shoulders. :-)&#60;/p&#62;
&#60;p&#62;For third aside people, remember to #third_aside_div_name {clear: right;} to get them to stack nicely.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Change the order widget areas are stacked"</title>
<link>http://themeshaper.com/forums/topic/change-the-order-widget-areas-are-stacked#post-18894</link>
<pubDate>Wed, 02 Feb 2011 10:11:17 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">18894@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;yuppers.  got this from gene.  i was looking to change the class on a widget with id of header-aside so you'll need to change that to your id&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//change class of header aside
function child_header_widget_class($content) {
	$child_class = str_replace(&#38;#39;header-aside&#38;quot; class=&#38;quot;aside&#38;#39;, &#38;#39;header-aside&#38;quot; class=&#38;quot;aside main-aside&#38;#39;, $content);
return $child_class;
}
add_filter(&#38;#39;thematic_before_widget_area&#38;#39;, &#38;#39;child_header_widget_class&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>malinki on "Change the order widget areas are stacked"</title>
<link>http://themeshaper.com/forums/topic/change-the-order-widget-areas-are-stacked#post-18893</link>
<pubDate>Wed, 02 Feb 2011 09:47:07 +0000</pubDate>
<dc:creator>malinki</dc:creator>
<guid isPermaLink="false">18893@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Gorblimey guv'nor... it works!&#60;/p&#62;
&#60;p&#62;Add a third aside and have it show third in list of widgetized areas:&#60;/p&#62;
&#60;p&#62;function add_tertiary_aside($content) {&#60;br /&#62;
	$content['Tertiary Aside'] = array(&#60;br /&#62;
		'admin_menu_order' =&#38;gt; 300,&#60;br /&#62;
		'args' =&#38;gt; array (&#60;br /&#62;
			'name' =&#38;gt; 'Tertiary Aside',&#60;br /&#62;
			'id' =&#38;gt; 'tertiary-aside',&#60;br /&#62;
			'before_widget' =&#38;gt; thematic_before_widget(),&#60;br /&#62;
			'after_widget' =&#38;gt; thematic_after_widget(),&#60;br /&#62;
			'before_title' =&#38;gt; thematic_before_title(),&#60;br /&#62;
			'after_title' =&#38;gt; thematic_after_title(),&#60;br /&#62;
		),&#60;br /&#62;
		'action_hook'	=&#38;gt; 'thematic_belowmainasides',&#60;br /&#62;
		'function'		=&#38;gt; 'thematic_tertiary_aside',&#60;br /&#62;
		'priority'		=&#38;gt; 8,&#60;br /&#62;
	);&#60;br /&#62;
	return $content;&#60;br /&#62;
}&#60;br /&#62;
add_filter('thematic_widgetized_areas', 'add_tertiary_aside');&#60;/p&#62;
&#60;p&#62;function thematic_tertiary_aside() {&#60;br /&#62;
	if (is_sidebar_active('tertiary-aside')) {&#60;br /&#62;
		echo thematic_before_widget_area('tertiary-aside');&#60;br /&#62;
		dynamic_sidebar('tertiary-aside');&#60;br /&#62;
		echo thematic_after_widget_area('tertiary-aside');&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;Thx Madame Viking!&#60;/p&#62;
&#60;p&#62;But is it possible to assign the main-aside class to the new widget area?
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Change the order widget areas are stacked"</title>
<link>http://themeshaper.com/forums/topic/change-the-order-widget-areas-are-stacked#post-18874</link>
<pubDate>Tue, 01 Feb 2011 15:39:31 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">18874@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i don't think it can be done in your code.  i highly recommend filtering the thematic_widget_areas array.. which i believe is the method shown the post you referenced.&#60;/p&#62;
&#60;p&#62;'admin_menu_order' is then the array  key you need to target to control where it gets sorted in the admin/backend
&#60;/p&#62;</description>
</item>
<item>
<title>malinki on "Change the order widget areas are stacked"</title>
<link>http://themeshaper.com/forums/topic/change-the-order-widget-areas-are-stacked#post-18872</link>
<pubDate>Tue, 01 Feb 2011 15:28:10 +0000</pubDate>
<dc:creator>malinki</dc:creator>
<guid isPermaLink="false">18872@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;What if I didn't use the filter 'thematic_widgetized_areas'? (I wouldn't even know if I had actually, but I can't see anything akin to 'admin_menu_order' in what I did)!&#60;/p&#62;
&#60;p&#62;I added a 'tertiary aside' using: &#60;/p&#62;
&#60;p&#62;function my_widgets_init() {&#60;br /&#62;
    register_sidebar(array(&#60;br /&#62;
       	'name' =&#38;gt; 'Tertiary Aside',&#60;br /&#62;
       	'id' =&#38;gt; 'tertiary-aside',&#60;br /&#62;
       	'before_widget' =&#38;gt; '&#38;lt;li id=&#34;%1$s&#34; class=&#34;widgetcontainer %2$s&#34;&#38;gt;',&#60;br /&#62;
       	'after_widget' =&#38;gt; &#34;&#34;,&#60;br /&#62;
		'before_title' =&#38;gt; &#34;&#38;lt;h3 class=\&#34;widgettitle\&#34;&#38;gt;&#34;,&#60;br /&#62;
		'after_title' =&#38;gt; &#34;&#38;lt;/h3&#38;gt;\n&#34;,&#60;br /&#62;
    ));&#60;/p&#62;
&#60;p&#62;}&#60;br /&#62;
add_action( 'init', 'my_widgets_init' );&#60;/p&#62;
&#60;p&#62;function my_extra_widgets() {&#60;br /&#62;
if ( function_exists('dynamic_sidebar') &#38;#38;&#38;#38; is_sidebar_active('tertiary-aside') ) {&#60;br /&#62;
    echo '&#38;lt;div id=&#34;tertiary-aside&#34; class=&#34;aside&#34;&#38;gt;'. &#34;\n&#34; . '&#38;lt;ul class=&#34;xoxo&#34;&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
    dynamic_sidebar('tertiary-aside');&#60;br /&#62;
    echo '' . &#34;\n&#34; . '&#38;lt;/div&#38;gt;&#38;lt;!-- #tertiary-aside .aside --&#38;gt;'. &#34;\n&#34;;&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_belowmainasides', 'my_extra_widgets', 8);&#60;/p&#62;
&#60;p&#62;and it would be great if it could show up under the 'Second Aside' in the list. &#60;/p&#62;
&#60;p&#62;I have looked at the somthing new 'bout post, but can't figure it out!&#60;/p&#62;
&#60;p&#62;Thx.
&#60;/p&#62;</description>
</item>
<item>
<title>mirko77 on "Change the order widget areas are stacked"</title>
<link>http://themeshaper.com/forums/topic/change-the-order-widget-areas-are-stacked#post-16939</link>
<pubDate>Fri, 12 Nov 2010 10:33:59 +0000</pubDate>
<dc:creator>mirko77</dc:creator>
<guid isPermaLink="false">16939@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Change the order widget areas are stacked"</title>
<link>http://themeshaper.com/forums/topic/change-the-order-widget-areas-are-stacked#post-16757</link>
<pubDate>Fri, 05 Nov 2010 22:04:18 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">16757@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;if you used the filter 'thematic_widgetized_areas' to create the widget areas, change the 'admin_menu_order' to something below 100 for your widget areas. Both will show up above Primary Aside.&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>mirko77 on "Change the order widget areas are stacked"</title>
<link>http://themeshaper.com/forums/topic/change-the-order-widget-areas-are-stacked#post-16742</link>
<pubDate>Fri, 05 Nov 2010 15:23:31 +0000</pubDate>
<dc:creator>mirko77</dc:creator>
<guid isPermaLink="false">16742@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I created some custom widgets and I added them to the admin area.&#60;/p&#62;
&#60;p&#62;How can I customise the stack order? I create a &#34;Header Left&#34; and &#34;Header Right&#34; areas and I would like to have them at the top of my list (in the widget admin page).&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
</item>

</channel>
</rss>
