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

<item>
<title>em hr on "Unable to style added subsidiaries in footer"</title>
<link>http://themeshaper.com/forums/topic/unable-to-style-added-subsidiaries-in-footer#post-27734</link>
<pubDate>Sat, 15 Dec 2012 18:09:00 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">27734@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Please &#60;a href=&#34;http://themeshaper.com/forums/topic/please-read-this-before-adding-new-topics-thematic-has-moved&#34;&#62; read this&#60;/a&#62; and come to then new &#60;a href=&#34;http://thematictheme.com/forums/&#34;&#62;ThematicTheme Forums&#60;/a&#62; for support.
&#60;/p&#62;</description>
</item>
<item>
<title>PitaMaria on "Unable to style added subsidiaries in footer"</title>
<link>http://themeshaper.com/forums/topic/unable-to-style-added-subsidiaries-in-footer#post-27676</link>
<pubDate>Mon, 19 Nov 2012 00:17:21 +0000</pubDate>
<dc:creator>PitaMaria</dc:creator>
<guid isPermaLink="false">27676@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;On my testing page at &#60;a href=&#34;http://andycampbellcreative.com/Watermark/&#34; rel=&#34;nofollow&#34;&#62;http://andycampbellcreative.com/Watermark/&#60;/a&#62; I've successfully added two new widgetized areas to my footer #subsidiary via the code below. Problem is, any new styling I specify in my CSS is being ignored, and I suspect it's because of a problem with how this code defines my two new divs #4th-subsidiary-aside and #5th-subsidiary-aside ...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Adding 4th and 5th subsidiary widgetized areas to the footer
function add_4th_subsidiary_aside($content) {
    $content[&#38;#39;4th Subsidiary Aside&#38;#39;] = array(
        &#38;#39;admin_menu_order&#38;#39; =&#38;gt; 510,
		&#38;#39;args&#38;#39; =&#38;gt; array (
			&#38;#39;name&#38;#39; =&#38;gt; &#38;#39;4th Subsidiary Aside&#38;#39;,
			&#38;#39;id&#38;#39; =&#38;gt; &#38;#39;4th-subsidiary-aside&#38;#39;,
            &#38;#39;description&#38;#39; =&#38;gt; __(&#38;#39;The 4th widget area in the footer.&#38;#39;, &#38;#39;thematic&#38;#39;),
			&#38;#39;before_widget&#38;#39; =&#38;gt; thematic_before_widget(),
			&#38;#39;after_widget&#38;#39; =&#38;gt; thematic_after_widget(),
			&#38;#39;before_title&#38;#39; =&#38;gt; thematic_before_title(),
			&#38;#39;after_title&#38;#39; =&#38;gt; thematic_after_title(),
		),
		&#38;#39;action_hook&#38;#39;	=&#38;gt; &#38;#39;widget_area_subsidiaries&#38;#39;,
		&#38;#39;function&#38;#39;		=&#38;gt; &#38;#39;thematic_4th_subsidiary_aside&#38;#39;,
		&#38;#39;priority&#38;#39;		=&#38;gt; 75,
    );
    return $content;
}
add_filter(&#38;#39;thematic_widgetized_areas&#38;#39;, &#38;#39;add_4th_subsidiary_aside&#38;#39;);

// Define the 4th Subsidiary Aside
function thematic_4th_subsidiary_aside() {
	if (is_active_sidebar(&#38;#39;4th-subsidiary-aside&#38;#39;)) {
		echo thematic_before_widget_area(&#38;#39;4th-subsidiary-aside&#38;#39;);
		dynamic_sidebar(&#38;#39;4th-subsidiary-aside&#38;#39;);
		echo thematic_after_widget_area(&#38;#39;4th-subsidiary-aside&#38;#39;);
	}
}
function add_5th_subsidiary_aside($content) {
    $content[&#38;#39;5th Subsidiary Aside&#38;#39;] = array(
        &#38;#39;admin_menu_order&#38;#39; =&#38;gt; 520,
		&#38;#39;args&#38;#39; =&#38;gt; array (
			&#38;#39;name&#38;#39; =&#38;gt; &#38;#39;5th Subsidiary Aside&#38;#39;,
			&#38;#39;id&#38;#39; =&#38;gt; &#38;#39;5th-subsidiary-aside&#38;#39;,
            &#38;#39;description&#38;#39; =&#38;gt; __(&#38;#39;The 5th widget area in the footer.&#38;#39;, &#38;#39;thematic&#38;#39;),
			&#38;#39;before_widget&#38;#39; =&#38;gt; thematic_before_widget(),
			&#38;#39;after_widget&#38;#39; =&#38;gt; thematic_after_widget(),
			&#38;#39;before_title&#38;#39; =&#38;gt; thematic_before_title(),
			&#38;#39;after_title&#38;#39; =&#38;gt; thematic_after_title(),
		),
		&#38;#39;action_hook&#38;#39;	=&#38;gt; &#38;#39;widget_area_subsidiaries&#38;#39;,
		&#38;#39;function&#38;#39;		=&#38;gt; &#38;#39;thematic_5th_subsidiary_aside&#38;#39;,
		&#38;#39;priority&#38;#39;		=&#38;gt; 79,
    );
    return $content;
}
add_filter(&#38;#39;thematic_widgetized_areas&#38;#39;, &#38;#39;add_5th_subsidiary_aside&#38;#39;);

// Define the 5th Subsidiary Aside
function thematic_5th_subsidiary_aside() {
	if (is_active_sidebar(&#38;#39;5th-subsidiary-aside&#38;#39;)) {
		echo thematic_before_widget_area(&#38;#39;5th-subsidiary-aside&#38;#39;);
		dynamic_sidebar(&#38;#39;5th-subsidiary-aside&#38;#39;);
		echo thematic_after_widget_area(&#38;#39;5th-subsidiary-aside&#38;#39;);
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;No matter what styling I add to #4th-subsidiary-aside or #5th-subsidiary-aside nothing sticks. I've read everything I can find on the mater here in the forums (i.e. &#60;a href=&#34;http://themeshaper.com/forums/topic/how-can-i-add-multiple-subsidiaries,&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/how-can-i-add-multiple-subsidiaries,&#60;/a&#62; &#60;a href=&#34;http://themeshaper.com/forums/topic/something-new-bout-widgetized-areas&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/something-new-bout-widgetized-areas&#60;/a&#62; and &#60;a href=&#34;http://themeshaper.com/forums/topic/can-i-make-a-5-column-subsidiary-widget&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/can-i-make-a-5-column-subsidiary-widget&#60;/a&#62;) but couldn't resolve my issue(s). Any help you fine folks could give me would be greatly appreciated. Thanks in advance.
&#60;/p&#62;</description>
</item>
<item>
<title>sylvainww on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-26176</link>
<pubDate>Thu, 05 Apr 2012 19:51:35 +0000</pubDate>
<dc:creator>sylvainww</dc:creator>
<guid isPermaLink="false">26176@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks for helping me out !&#60;/p&#62;
&#60;p&#62;So you mean that when you activated the them, the custom widget areas were not filled with the usual thematic widgets (like meta, links, search, etc.) ? Because it keeps happening to me and although it's kinda getting me crazy !
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-26127</link>
<pubDate>Mon, 02 Apr 2012 14:44:28 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26127@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i just activated your theme locally.  the active widgets are definitely NOT the thematic defaults, so your attempt to set default widgets appears to be working just fine.
&#60;/p&#62;</description>
</item>
<item>
<title>sylvainww on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-26126</link>
<pubDate>Mon, 02 Apr 2012 11:55:42 +0000</pubDate>
<dc:creator>sylvainww</dc:creator>
<guid isPermaLink="false">26126@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi, Thanks for the answer. The problem that still remains for me is that for any new installation of my theme (available here : &#60;a href=&#34;http://www.apptamin.com/websites-mobile-apps/apptamin-a-more/&#34; rel=&#34;nofollow&#34;&#62;http://www.apptamin.com/websites-mobile-apps/apptamin-a-more/&#60;/a&#62;) the widgets in the widget-areas are not the ones I want, but the default (thematic ?) ones : search, meta, etc.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-26084</link>
<pubDate>Tue, 27 Mar 2012 18:32:07 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26084@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i'm confused, b/c middlesister's code solved the problem for me.  what isn't it doing for you?&#60;/p&#62;
&#60;p&#62;the isset( $_GET['activated'] ) is there to only run the code on theme activation.  if you remove it, it will run every time and as you have discovered,  any changes to your widget set up will be lost.
&#60;/p&#62;</description>
</item>
<item>
<title>sylvainww on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-26083</link>
<pubDate>Tue, 27 Mar 2012 14:36:30 +0000</pubDate>
<dc:creator>sylvainww</dc:creator>
<guid isPermaLink="false">26083@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi again,&#60;/p&#62;
&#60;p&#62;Any ideas on how I can solve this problem ? Thanks !
&#60;/p&#62;</description>
</item>
<item>
<title>sylvainww on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-26044</link>
<pubDate>Wed, 21 Mar 2012 13:55:31 +0000</pubDate>
<dc:creator>sylvainww</dc:creator>
<guid isPermaLink="false">26044@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi !&#60;/p&#62;
&#60;p&#62;After several hours of struggle I managed to make middlesister's code work. With one exception, which gave trouble in the first place : to make it work I have to remove the &#60;code&#62;if ( isset( $_GET['activated'] ) ) {&#38;lt;/code in the widget-extensions.php of the thematic framework :&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;&#60;code&#62;&#60;br /&#62;
if ( isset( $_GET['activated'] ) ) {&#60;br /&#62;
    	thematic_presetwidgets();&#60;br /&#62;
  		update_option( 'sidebars_widgets', apply_filters('thematic_preset_widgets',$preset_widgets ));&#60;br /&#62;
  	}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Only then my own preset widgets appear (and not the default one) when I install my theme from scratch Of course I realize that's not the right solution since now nothing I put in my widgets is saved. But do you have any idea where that could come from ?&#60;/p&#62;
&#60;p&#62;Thanks ! And sorry if my question seems stupid
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Different sidebars on different pages?"</title>
<link>http://themeshaper.com/forums/topic/different-sidebars-on-different-pages#post-25807</link>
<pubDate>Sat, 10 Mar 2012 05:46:51 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">25807@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i must still be missing something.  my engineering profs didn't talk about occam's razor.. they talked about dirt.  small wonder, why i was so bored with it.
&#60;/p&#62;</description>
</item>
<item>
<title>fwunder on "Different sidebars on different pages?"</title>
<link>http://themeshaper.com/forums/topic/different-sidebars-on-different-pages#post-25805</link>
<pubDate>Sat, 10 Mar 2012 03:13:22 +0000</pubDate>
<dc:creator>fwunder</dc:creator>
<guid isPermaLink="false">25805@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@helgatheviking, sorry, I was really just being a bit nostalgic; remembering more than one engineering prof beginning a lecture with Occam's razor. That was a long time ago. Without being too cliche' or oxymoronic, my personal observation of Thematic is that it's biggest weakness is it's strength - so many options, so little time. Please don't get me wrong. It's a really, really good problem. Again,  the question wasn't really germane to the thread. Just a Thematician  wanna-be trying to see a forest through the trees. Had to throw in one more cliche`!! ;)
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Different sidebars on different pages?"</title>
<link>http://themeshaper.com/forums/topic/different-sidebars-on-different-pages#post-25801</link>
<pubDate>Fri, 09 Mar 2012 16:13:40 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">25801@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@fwunder, didn't understand your rhetorical q.  :{
&#60;/p&#62;</description>
</item>
<item>
<title>fwunder on "Different sidebars on different pages?"</title>
<link>http://themeshaper.com/forums/topic/different-sidebars-on-different-pages#post-25779</link>
<pubDate>Thu, 08 Mar 2012 03:41:20 +0000</pubDate>
<dc:creator>fwunder</dc:creator>
<guid isPermaLink="false">25779@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Just got back from downtown Philly. Uhhh,...the cat thing....nevermind.&#60;/p&#62;
&#60;p&#62;Ya know, at what point do we get with mods before we just use [child]theme switchers? A rhetorical question.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Different sidebars on different pages?"</title>
<link>http://themeshaper.com/forums/topic/different-sidebars-on-different-pages#post-25776</link>
<pubDate>Thu, 08 Mar 2012 02:02:01 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">25776@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;more than 1 way to skin a cat.  which is a weird saying... b/c who skins cats?  but definitely more than 1 answer.  that plugin is the least coding-dependent, but i find it annoying if you have a lot of widgets.  also something pretty elegant/clear about having a sidebar for say the 'shop' section of your site and 1 for the 'blog' section.  to each her own...
&#60;/p&#62;</description>
</item>
<item>
<title>fwunder on "Different sidebars on different pages?"</title>
<link>http://themeshaper.com/forums/topic/different-sidebars-on-different-pages#post-25775</link>
<pubDate>Thu, 08 Mar 2012 01:40:45 +0000</pubDate>
<dc:creator>fwunder</dc:creator>
<guid isPermaLink="false">25775@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Uhhh, not to be a nudge or noodge, but why not just use:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/conditional-widgets/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/conditional-widgets/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This plugin adds a form to each widget on the Widgets panel which allows users to choose which pages and/or categories the widget is either displayed&#60;/p&#62;
&#60;p&#62;Works great for me...
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Different sidebars on different pages?"</title>
<link>http://themeshaper.com/forums/topic/different-sidebars-on-different-pages#post-25769</link>
<pubDate>Wed, 07 Mar 2012 21:15:49 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">25769@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;create new widget areas:&#60;br /&#62;
&#60;a href=&#34;http://themeshaper.com/forums/topic/something-new-bout-widgetized-areas#post-6660&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/something-new-bout-widgetized-areas#post-6660&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and use conditional logic to adjust when it appears.&#60;/p&#62;
&#60;p&#62;currently the only condition in that example is whether or not the sidebar has a widget in it:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if (is_sidebar_active(&#38;#39;header-aside&#38;#39;))&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but you could have it test for what page you are on w/ WP conditional tags&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Conditional_Tags&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Conditional_Tags&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;for example to limit the widget to the blog index/home:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if (is_sidebar_active(&#38;#39;header-aside&#38;#39;) AND is_home())&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>barber on "Different sidebars on different pages?"</title>
<link>http://themeshaper.com/forums/topic/different-sidebars-on-different-pages#post-25767</link>
<pubDate>Wed, 07 Mar 2012 16:01:37 +0000</pubDate>
<dc:creator>barber</dc:creator>
<guid isPermaLink="false">25767@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You could check for a page name, ID or custom field and change the sidebar content based on that. I generally don't use widgets but just put together custom functions. I'd be interested to know how people call actual widgets based on different pages, categories etc.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25763</link>
<pubDate>Wed, 07 Mar 2012 14:10:56 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">25763@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;middlesister for the win!
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25762</link>
<pubDate>Wed, 07 Mar 2012 13:48:33 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">25762@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thank you for testing, this works exactly as I wanted.&#60;/p&#62;
&#60;p&#62;Thanks again.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25754</link>
<pubDate>Tue, 06 Mar 2012 17:53:51 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">25754@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I had to try this, and the code above actually works. First of all, if you use a custom widget make sure you have registered it on the widget_init hook. If you can see your widget among the available widgets then it is registered, so you don't have to worry about that. &#60;/p&#62;
&#60;p&#62;I think the key for everything to come together is to get the name of the update_option right. This is the code that worked for me: &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_filter_preset_widgets( $preset_widgets ) {
	$preset_widgets = array (
		&#38;#39;primary-aside&#38;#39;  =&#38;gt; array( &#38;#39;mytestwidget-2&#38;#39;, &#38;#39;pages-2&#38;#39;, &#38;#39;categories-2&#38;#39;, &#38;#39;archives-2&#38;#39; ),
		&#38;#39;secondary-aside&#38;#39;  =&#38;gt; array( &#38;#39;links-2&#38;#39;, &#38;#39;rss-links-2&#38;#39;, &#38;#39;meta-2&#38;#39; ),
	);
	return $preset_widgets;
}
add_filter(&#38;#39;thematic_preset_widgets&#38;#39;,&#38;#39;childtheme_filter_preset_widgets&#38;#39;);

function childtheme_override_init_presetwidgets() {
		update_option( &#38;#39;widget_mytestwidget&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;1st&#38;#39; ), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_pages&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_categories&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;count&#38;#39; =&#38;gt; 0, &#38;#39;hierarchical&#38;#39; =&#38;gt; 0, &#38;#39;dropdown&#38;#39; =&#38;gt; 0 ), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_archives&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;count&#38;#39; =&#38;gt; 0, &#38;#39;dropdown&#38;#39; =&#38;gt; 0 ), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_links&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_rss-links&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_meta&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
}
add_action( &#38;#39;childtheme_override_presetwidgets&#38;#39;, &#38;#39;childtheme_override_init_presetwidgets&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Where mytestwidget is the name of the widget you want to add (that would probably be the lowercase name of the widget class of your custom widget). The number is important. You can add several instances of the widget in your update_option like this &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;update_option( &#38;#39;widget_mytestwidget&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;1st widget&#38;#39; ), 3 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;2nd widget&#38;#39; ), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And then you could place them in the sidebars with &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$preset_widgets = array (
	&#38;#39;primary-aside&#38;#39;  =&#38;gt; array( &#38;#39;mytestwidget-2&#38;#39;, &#38;#39;pages-2&#38;#39;, &#38;#39;categories-2&#38;#39;, &#38;#39;archives-2&#38;#39; ),
	&#38;#39;secondary-aside&#38;#39;  =&#38;gt; array( &#38;#39;mytestwidget-3&#38;#39;, &#38;#39;links-2&#38;#39;, &#38;#39;rss-links-2&#38;#39;, &#38;#39;meta-2&#38;#39; ),
	);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>helgatheviking on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25747</link>
<pubDate>Tue, 06 Mar 2012 14:24:07 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">25747@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;was that a week ago already?  geez.  but the answer was no, i was never able to get this to work with anything other that the default widgets.  sorry.
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25746</link>
<pubDate>Tue, 06 Mar 2012 12:26:57 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">25746@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi again, &#60;/p&#62;
&#60;p&#62;I am wondering if you have found a solution for this...&#60;br /&#62;
I have tried few more times, but nothing.&#60;/p&#62;
&#60;p&#62;Thank you.
&#60;/p&#62;</description>
</item>
<item>
<title>soluble on "Different sidebars on different pages?"</title>
<link>http://themeshaper.com/forums/topic/different-sidebars-on-different-pages#post-25744</link>
<pubDate>Tue, 06 Mar 2012 11:41:54 +0000</pubDate>
<dc:creator>soluble</dc:creator>
<guid isPermaLink="false">25744@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi, I'm a complete newbie to Thematic. &#60;/p&#62;
&#60;p&#62;I have 3 keys pages which I would like to display different content within the sidebar of each page. Is there a way to set up/register multiple sidebars which I can call for each page? I'd like to be able to add different widgets within each sidebar. Any help would be greatly appreciated.&#60;/p&#62;
&#60;p&#62;Many thanks, Matt
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25660</link>
<pubDate>Mon, 27 Feb 2012 04:51:18 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">25660@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;My widgets are made after the model from widgets.php, and they are working fine, except the fact that they are not showing by default where I want.&#60;br /&#62;
I have tried lot of times only with the default widgets, but no result. Maybe you will have a better one.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25658</link>
<pubDate>Sun, 26 Feb 2012 23:38:02 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">25658@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;the childtheme_override_init_presetwidgets() function just sets the titles and settings of the widgets.  it is the filter that &#34;sets&#34; the widgets on activation.  middlesister forgot to write function before the function, but that filter &#60;em&#62;does&#60;/em&#62; set the widgets as advertised.  &#60;/p&#62;
&#60;p&#62;if your new widget isn't getting set then i'd guess it is some sort of disconnect between the name of the widget and the options you are updating.... and i'm looking at this now and am a little confused by it myself.
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25657</link>
<pubDate>Sun, 26 Feb 2012 20:48:05 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">25657@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thank you again for your time, but still no luck for me. I think I am getting more and more confuse with this, maybe because I am not good with this hooks, filters etc....&#60;/p&#62;
&#60;p&#62;Helga, I would appreciate if you will try to test this, I am working only on this for about 3-4 days now, every time I feel like it is good but it is still not.&#60;br /&#62;
I am sure that this will help others too.&#60;/p&#62;
&#60;p&#62;And thanks for sharing your post Helga, I will try to learn this as more as I can, I just hope to not take me more than a year to understand it :)
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25656</link>
<pubDate>Sun, 26 Feb 2012 16:40:15 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">25656@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks Helga, I just saw that myself. Annoying to not be able to edit your own mistakes.&#60;/p&#62;
&#60;p&#62;@bogh:&#60;br /&#62;
The childtheme_override would be for the first part. Your childtheme_override_init_presetwidgets() looks good to me, the only thing you have changed is added the about widget, right? Just remove the add_action part, you don't need any add_action or add_filter for the childtheme_override functions.&#60;/p&#62;
&#60;p&#62;I don't know what id your about widget gets, but following the same principle as the others, try changing the second part to&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_filter_preset_widgets( $preset_widgets ) {
	$preset_widgets = array (
		&#38;#39;primary-aside&#38;#39;  =&#38;gt; array( &#38;#39;about-2&#38;#39;, &#38;#39;pages-2&#38;#39;, &#38;#39;categories-2&#38;#39;, &#38;#39;archives-2&#38;#39; ),
		&#38;#39;secondary-aside&#38;#39;  =&#38;gt; array( &#38;#39;links-2&#38;#39;, &#38;#39;rss-links-2&#38;#39;, &#38;#39;meta-2&#38;#39; ),
	);
	return $preset_widgets;
}
add_filter(&#38;#39;thematic_preset_widgets&#38;#39;,&#38;#39;childtheme_filter_preset_widgets&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I suggest you do not use the word override in your filters. Even though you can, and it would work, it is bound to be confusing in the end. The childtheme_override functions of thematic are separate from the actions and filters.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25655</link>
<pubDate>Sun, 26 Feb 2012 16:08:00 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">25655@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;good start, b/c childtheme_override_widgets_init does not exist in the 'override' sense.  but, middlesister had a typo (one that i make often myself).  it should be add_filter and not apply_filter since we're trying to add our filter function to the filter hook (which is signified by apply_filters in the core).  i have amended her code and your code, try that.&#60;/p&#62;
&#60;p&#62;i wrote this post to try to explain filters/actions.&#60;br /&#62;
&#60;a href=&#34;http://themeshaper.com/forums/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;it might not be immediately clear, but kyle asked some good newbie questions and i tried to explain further.  i think it is pretty comprehensive.  it is a lot of reading, but you are trying to learn a new language here.... you aren't going to get it in 10 minutes.  (though if you do, please share your secret b/c it took me a year to fully get filters!)  &#60;/p&#62;
&#60;p&#62;if that change still doesn't work i'll try to test something locally....
&#60;/p&#62;</description>
</item>
<item>
<title>bogh on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25654</link>
<pubDate>Sun, 26 Feb 2012 15:12:54 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">25654@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I have tried to make the second part like it follows, but still no luck&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_widgets_init($preset_widgets) {

	// Pre-set Widgets
	$preset_widgets = array (
		&#38;#39;primary-aside&#38;#39;  =&#38;gt; array( &#38;#39;about&#38;#39;, &#38;#39;pages-2&#38;#39;, &#38;#39;categories-2&#38;#39;, &#38;#39;archives-2&#38;#39; ),
		&#38;#39;secondary-aside&#38;#39;  =&#38;gt; array( &#38;#39;links-2&#38;#39;, &#38;#39;rss-links-2&#38;#39;, &#38;#39;meta-2&#38;#39; )
		);
	return $preset_widgets;
}
add_filter(&#38;#39;thematic_preset_widgets&#38;#39;,&#38;#39;childtheme_override_widgets_init&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>bogh on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25653</link>
<pubDate>Sun, 26 Feb 2012 15:00:24 +0000</pubDate>
<dc:creator>bogh</dc:creator>
<guid isPermaLink="false">25653@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thank you both for your answers, but it is not working yet.&#60;/p&#62;
&#60;p&#62;Please see the code below, I have added this one to the functions.php, I think it is almost what I need, at least it seems plausible, but something might by wrong, maybe a wrong filter or hook.&#60;/p&#62;
&#60;p&#62;I have replaced thematic_ with childtheme_override_ as Helga said, the code is part of widgets-extensions.php&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_init_presetwidgets() {
		update_option( &#38;#39;widget_about&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39; ), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_pages&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_categories&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;count&#38;#39; =&#38;gt; 0, &#38;#39;hierarchical&#38;#39; =&#38;gt; 0, &#38;#39;dropdown&#38;#39; =&#38;gt; 0 ), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_archives&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;count&#38;#39; =&#38;gt; 0, &#38;#39;dropdown&#38;#39; =&#38;gt; 0 ), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_links&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_rss-links&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
		update_option( &#38;#39;widget_meta&#38;#39;, array( 2 =&#38;gt; array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;), &#38;#39;_multiwidget&#38;#39; =&#38;gt; 1 ) );
}
add_action( &#38;#39;childtheme_override_presetwidgets&#38;#39;, &#38;#39;childtheme_override_init_presetwidgets&#38;#39; );

function childtheme_override_widgets_init() {

	// Pre-set Widgets
	$preset_widgets = array (
		&#38;#39;primary-aside&#38;#39;  =&#38;gt; array( &#38;#39;about&#38;#39;, &#38;#39;pages-2&#38;#39;, &#38;#39;categories-2&#38;#39;, &#38;#39;archives-2&#38;#39; ),
		&#38;#39;secondary-aside&#38;#39;  =&#38;gt; array( &#38;#39;links-2&#38;#39;, &#38;#39;rss-links-2&#38;#39;, &#38;#39;meta-2&#38;#39; )
		);

    if ( isset( $_GET[&#38;#39;activated&#38;#39;] ) ) {
    	childtheme_override_presetwidgets();
  		update_option( &#38;#39;sidebars_widgets&#38;#39;, apply_filters(&#38;#39;childtheme_override_preset_widgets&#38;#39;,$preset_widgets ));
  	}

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Can you please tell me where I can read about hooks, filters, args, maybe some kind of tutorial, because I still can't make difference between them.&#60;/p&#62;
&#60;p&#62;Thank you :)
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Set newly created widget as a standard widget in Primary Aside"</title>
<link>http://themeshaper.com/forums/topic/set-newly-created-widget-as-a-standard-widget-in-primary-aside#post-25652</link>
<pubDate>Sun, 26 Feb 2012 14:52:44 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">25652@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;ahhh.... so it is.  missed that part, which is what happens when you don't test.  apologies for sounding short in my last message.  i didn't look at the code enough.  &#60;/p&#62;
&#60;p&#62;try out middlesister's code and report back.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
