<?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: How do I set the default widgets in my child theme?</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 22 May 2013 14:46:22 +0000</pubDate>

<item>
<title>peterhol on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-12026</link>
<pubDate>Fri, 30 Apr 2010 23:56:33 +0000</pubDate>
<dc:creator>peterhol</dc:creator>
<guid isPermaLink="false">12026@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;any thoughts on what could cause this behaviour?
&#60;/p&#62;</description>
</item>
<item>
<title>peterhol on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11988</link>
<pubDate>Thu, 29 Apr 2010 18:58:07 +0000</pubDate>
<dc:creator>peterhol</dc:creator>
<guid isPermaLink="false">11988@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Seriously: I ran tests with both swedish and norwegian translation settings:&#60;/p&#62;
&#60;p&#62;Test 1&#60;br /&#62;
1: wp-admin/options-general.php -&#38;gt; site language -&#38;gt; english&#60;br /&#62;
2: change theme to twenty-ten&#60;br /&#62;
3: go to wp-admin/widgets.php (no widgets are active)&#60;br /&#62;
3: change theme back to thematic&#60;br /&#62;
4: go to wp-admin/widgets.php&#60;br /&#62;
Result: all widgets that are supposed to be there, are there (4 in primary aside, 3 in secondary aside). These widgets show up when going to the front page as well.&#60;/p&#62;
&#60;p&#62;Test 2&#60;br /&#62;
1: wp-admin/options-general.php -&#38;gt; site language -&#38;gt; norwegian (or swedish)&#60;br /&#62;
2: change theme to twenty-ten&#60;br /&#62;
3: go to wp-admin/widgets.php (no widgets are active)&#60;br /&#62;
3: change theme back to thematic&#60;br /&#62;
4: go to wp-admin/widgets.php&#60;br /&#62;
Result: only one widget is active (&#34;meta&#34;, in secondary aside). This widget shows up when going to the front page as well.
&#60;/p&#62;</description>
</item>
<item>
<title>peterhol on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11985</link>
<pubDate>Thu, 29 Apr 2010 14:45:01 +0000</pubDate>
<dc:creator>peterhol</dc:creator>
<guid isPermaLink="false">11985@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;now.. what could be wrong with the translation files..?
&#60;/p&#62;</description>
</item>
<item>
<title>peterhol on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11984</link>
<pubDate>Thu, 29 Apr 2010 14:44:43 +0000</pubDate>
<dc:creator>peterhol</dc:creator>
<guid isPermaLink="false">11984@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;got it: created a new site, and that worked, with all the plugins. I started looking for differences - and the only thing I found was that the new site was created using english - but the other site is using a norwegian translation.. so, when i changed the new sites language to norwegian - all the widgets disappeared (except for &#34;meta&#34;) - and when i set the site to english again, the widgets showed!
&#60;/p&#62;</description>
</item>
<item>
<title>peterhol on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11983</link>
<pubDate>Thu, 29 Apr 2010 14:24:25 +0000</pubDate>
<dc:creator>peterhol</dc:creator>
<guid isPermaLink="false">11983@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;have done that.. still only the meta widget is showing..
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11982</link>
<pubDate>Thu, 29 Apr 2010 14:10:34 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">11982@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;It sounds like thmeatic's sidebars_widgets options array is fragged.&#60;/p&#62;
&#60;p&#62; Try reseting the widgets from the admin: wp-admin&#38;gt;appearance&#38;gt;thematic-options&#60;br /&#62;
then activate your child theme and visit  appearance&#38;gt;widgets in the admin and see if that helps
&#60;/p&#62;</description>
</item>
<item>
<title>peterhol on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11981</link>
<pubDate>Thu, 29 Apr 2010 14:01:06 +0000</pubDate>
<dc:creator>peterhol</dc:creator>
<guid isPermaLink="false">11981@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;well it's the same when I use the thematic &#34;base theme&#34; - only the meta widget shows (ie. no extra code)..
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11980</link>
<pubDate>Thu, 29 Apr 2010 13:46:37 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">11980@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Comparing how Thematic to Twenty-ten or any other theme is like comparing apples to oranges. They're both likely using entirely different methods of registering sidebars and presetting widgets. &#60;/p&#62;
&#60;p&#62;What is the code you are using that does not work?
&#60;/p&#62;</description>
</item>
<item>
<title>peterhol on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11979</link>
<pubDate>Thu, 29 Apr 2010 13:20:49 +0000</pubDate>
<dc:creator>peterhol</dc:creator>
<guid isPermaLink="false">11979@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;ok.. tried once more, and i got the code to work - kind of - so i think my problem might be of another kind. after seeing some thematic child themes i realized that whenever i use thematic, the only widget that is automatically registered, is the meta widget! so what i did now was basically to change your code to this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function preset_child_widgets() {
	$child_preset_widgets = array (
		&#38;#39;primary-aside&#38;#39;  =&#38;gt; array( &#38;#39;meta&#38;#39;, &#38;#39;meta&#38;#39;),
		&#38;#39;secondary-aside&#38;#39;  =&#38;gt; array( &#38;#39;meta&#38;#39; ),
		&#38;#39;1st-subsidiary-aside&#38;#39;  =&#38;gt; array( &#38;#39;meta&#38;#39; ),
		&#38;#39;2nd-subsidiary-aside&#38;#39;  =&#38;gt; array( &#38;#39;meta&#38;#39; ),
		&#38;#39;3rd-subsidiary-aside&#38;#39;  =&#38;gt; array( &#38;#39;meta&#38;#39; )

	);
return $child_preset_widgets;
}
add_filter(&#38;#39;thematic_preset_widgets&#38;#39;,&#38;#39;preset_child_widgets&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and sure enough, the meta widget showed up three times in the sidebar, and three times in the footer..&#60;/p&#62;
&#60;p&#62;see &#60;a href=&#34;http://holme.se/&#34; rel=&#34;nofollow&#34;&#62;http://holme.se/&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;any idea what could be wrong? when I activate twenty-ten, both the search, archive and meta widgets are registered automatically.
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11974</link>
<pubDate>Thu, 29 Apr 2010 12:04:05 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">11974@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Activate the child theme with your filter of the $preset widgets array and then navigate to wp-admin&#38;gt;appearance&#38;gt;widgets At that point I believe you will see the new widgets appear on your site. Try it and let me know if this works albeit awkwardly.
&#60;/p&#62;</description>
</item>
<item>
<title>peterhol on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11972</link>
<pubDate>Thu, 29 Apr 2010 11:54:32 +0000</pubDate>
<dc:creator>peterhol</dc:creator>
<guid isPermaLink="false">11972@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm sorry - I still can't get this to work.. I copied the code by Gene into my functions.php (in a child theme) - but no widgets are showing when I reactivate the the theme!? (I tried changing back and forth using different themes, as well as activating widgets here and there.. but every time I reactivate the child theme, the widget areas are blank. I use WP 3.0-beta and Thematic 0.9.6.2)
&#60;/p&#62;</description>
</item>
<item>
<title>Devin on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11268</link>
<pubDate>Wed, 07 Apr 2010 17:30:04 +0000</pubDate>
<dc:creator>Devin</dc:creator>
<guid isPermaLink="false">11268@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Worked for me.  Thanks Gene.
&#60;/p&#62;</description>
</item>
<item>
<title>lambeboy on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11084</link>
<pubDate>Mon, 29 Mar 2010 14:37:01 +0000</pubDate>
<dc:creator>lambeboy</dc:creator>
<guid isPermaLink="false">11084@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;wordpress (2.9.2) - REALLY??? that's it? Wow! I have been struggling with this issue for a week now. Tried all the methods out there, including what helgatheviking tried. Was starting to think presetting widgets was not just a stable practice yet.&#60;/p&#62;
&#60;p&#62;even thought this new multi-widget implementation thingy had something to do with it:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://ptahdunbar.com/wordpress/round-2-preset-widgets-to-widget-areas/&#34; rel=&#34;nofollow&#34;&#62;http://ptahdunbar.com/wordpress/round-2-preset-widgets-to-widget-areas/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;note-to-self: everything is a filter/hook
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11073</link>
<pubDate>Mon, 29 Mar 2010 01:25:25 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">11073@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Well duh nothing happens if i don't filter/hook it in!  &#38;lt;slaps forehead&#38;gt; thanks for this.
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11058</link>
<pubDate>Sun, 28 Mar 2010 23:13:12 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">11058@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Helga,&#60;/p&#62;
&#60;p&#62;There is a filter for the preset widgets. Here's is how you're wanting to use it.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function preset_child_widgets() {
	$child_preset_widgets = array (
		&#38;#39;primary-aside&#38;#39;  =&#38;gt; array( &#38;#39;search&#38;#39;, &#38;#39;categories&#38;#39;),
		&#38;#39;secondary-aside&#38;#39;  =&#38;gt; array( &#38;#39;text&#38;#39; ),
		&#38;#39;1st-subsidiary-aside&#38;#39;  =&#38;gt; array( &#38;#39;text&#38;#39; ),
		&#38;#39;2nd-subsidiary-aside&#38;#39;  =&#38;gt; array( &#38;#39;text&#38;#39; ),
		&#38;#39;3rd-subsidiary-aside&#38;#39;  =&#38;gt; array( &#38;#39;text&#38;#39; )

	);
return $child_preset_widgets;
}
add_filter(&#38;#39;thematic_preset_widgets&#38;#39;,&#38;#39;preset_child_widgets&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Note this only works upon intial activation of your child theme so you'll have to switch themes to make any results show. Also I don't think this will reinstate pre-existing text widgets. It will only create new ones with no content in them until you add some.&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "How do I set the default widgets in my child theme?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-set-the-default-widgets-in-my-child-theme#post-11051</link>
<pubDate>Sun, 28 Mar 2010 20:22:00 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">11051@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'd like to specify which widgets go where in my child theme instead of using the default thematic setup.  &#60;/p&#62;
&#60;p&#62;I tried this but no joy on my install.  Still got those pesky meta and links widgets.  &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$preset_widgets = array (
	&#38;#39;primary-aside&#38;#39;  =&#38;gt; array( &#38;#39;CollisionWidget&#38;#39;,&#38;#39;search&#38;#39;, &#38;#39;categories&#38;#39;),
	&#38;#39;secondary-aside&#38;#39;  =&#38;gt; array( &#38;#39;text&#38;#39; ),
	&#38;#39;1st-subsidiary-aside&#38;#39;  =&#38;gt; array( &#38;#39;text&#38;#39; ),
	&#38;#39;2nd-subsidiary-aside&#38;#39;  =&#38;gt; array( &#38;#39;text&#38;#39; ),
	&#38;#39;3rd-subsidiary-aside&#38;#39;  =&#38;gt; array( &#38;#39;text&#38;#39; )

);
if ( isset( $_GET[&#38;#39;activated&#38;#39;] ) ) {
	update_option( &#38;#39;sidebars_widgets&#38;#39;, $preset_widgets );
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
