<?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/ unregister widget from admin panel and theme</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 07:54:33 +0000</pubDate>

<item>
<title>helgatheviking on "Remove/ unregister widget from admin panel and theme"</title>
<link>http://themeshaper.com/forums/topic/remove-unregister-widget-from-admin-panel-and-theme#post-20742</link>
<pubDate>Thu, 21 Apr 2011 02:55:29 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">20742@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@dave your solution is perfect for unregistering widget areas.  i believe the OP from 4 months ago wanted to remove the actual widgets.  in which case the first result in google reveals:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function unregister_problem_widgets() {
unregister_sidebar_widget(&#38;#39;Calendar&#38;#39;);
unregister_sidebar_widget(&#38;#39;Search&#38;#39;);
}
add_action(&#38;#39;widgets_init&#38;#39;,&#38;#39;unregister_problem_widgets&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;from:&#60;br /&#62;
&#60;a href=&#34;http://bookmarks.honewatson.com/2008/04/22/unregister-widgets-in-wordpress-functionsphp-file/&#34; rel=&#34;nofollow&#34;&#62;http://bookmarks.honewatson.com/2008/04/22/unregister-widgets-in-wordpress-functionsphp-file/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>davelandon on "Remove/ unregister widget from admin panel and theme"</title>
<link>http://themeshaper.com/forums/topic/remove-unregister-widget-from-admin-panel-and-theme#post-20735</link>
<pubDate>Wed, 20 Apr 2011 17:14:31 +0000</pubDate>
<dc:creator>davelandon</dc:creator>
<guid isPermaLink="false">20735@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;/* Defining Widget Areas */&#60;/p&#62;
&#60;p&#62;function remove_widget_areas($content) {&#60;br /&#62;
    unset($content['Primary Aside']);&#60;br /&#62;
    unset($content['Secondary Aside']);&#60;br /&#62;
    unset($content['1st Subsidiary Aside']);&#60;br /&#62;
    unset($content['2nd Subsidiary Aside']);&#60;br /&#62;
    unset($content['3rd Subsidiary Aside']);&#60;br /&#62;
    unset($content['Text Top']);&#60;br /&#62;
    unset($content['Index Insert']);&#60;br /&#62;
    unset($content['Index Bottom']);&#60;br /&#62;
    unset($content['Single Top']);&#60;br /&#62;
    unset($content['Single Insert']);&#60;br /&#62;
    unset($content['Single Bottom']);&#60;br /&#62;
    unset($content['Page Top']);&#60;br /&#62;
    unset($content['Page Bottom']);&#60;br /&#62;
    return $content;&#60;br /&#62;
}&#60;br /&#62;
add_filter('thematic_widgetized_areas', 'remove_widget_areas');&#60;/p&#62;
&#60;p&#62;This should remove all pesky default widgets within Thematic.
&#60;/p&#62;</description>
</item>
<item>
<title>candregg on "Remove/ unregister widget from admin panel and theme"</title>
<link>http://themeshaper.com/forums/topic/remove-unregister-widget-from-admin-panel-and-theme#post-17902</link>
<pubDate>Thu, 23 Dec 2010 16:37:02 +0000</pubDate>
<dc:creator>candregg</dc:creator>
<guid isPermaLink="false">17902@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I have had the same problem.  Used the code below in my functinos file:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
///* Defining Widget Areas */&#60;br /&#62;
function remove_widget_areas($content) {&#60;br /&#62;
	unset($content['Index Top']);&#60;br /&#62;
	unset($content['Index Bottom']);&#60;br /&#62;
	unset($content['Index Insert']);&#60;br /&#62;
	unset($content['Single Top']);&#60;br /&#62;
	unset($content['Single Bottom']);&#60;br /&#62;
	unset($content['Single Insert']);&#60;br /&#62;
	unset($content['Page Top']);&#60;br /&#62;
	unset($content['Page Bottom']);&#60;br /&#62;
	return $content; } &#60;/p&#62;
&#60;p&#62;add_filter('thematic_widgetized_areas', 'remove_widget_areas');&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It had absolutely no effect on the number of widgets showing in the admin area.&#60;/p&#62;
&#60;p&#62;Any help from the moderator would be apreciated.
&#60;/p&#62;</description>
</item>
<item>
<title>mirko77 on "Remove/ unregister widget from admin panel and theme"</title>
<link>http://themeshaper.com/forums/topic/remove-unregister-widget-from-admin-panel-and-theme#post-17822</link>
<pubDate>Fri, 17 Dec 2010 16:44:52 +0000</pubDate>
<dc:creator>mirko77</dc:creator>
<guid isPermaLink="false">17822@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I have been trying to remove some default widgets both from the admin panel and my default child theme with no luck.&#60;/p&#62;
&#60;p&#62;For example, I added a search bar next to my main navigation through code and I would like to remove completely the &#34;Search&#34; widget. &#60;/p&#62;
&#60;p&#62;I tried to remove these lines from widgets-extensions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Finished intializing Widgets plugin, now let&#38;#39;s load the thematic default widgets

	register_widget(&#38;#39;THM_Widget_Search&#38;#39;);
	register_widget(&#38;#39;THM_Widget_Meta&#38;#39;);
	register_widget(&#38;#39;THM_Widget_RSSlinks&#38;#39;);

	// Pre-set Widgets
	$preset_widgets = array (
		&#38;#39;primary-aside&#38;#39;  =&#38;gt; array( &#38;#39;search-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; )
		);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but nothing changed.&#60;/p&#62;
&#60;p&#62;Any suggestion would be very much appreciated
&#60;/p&#62;</description>
</item>

</channel>
</rss>
