<?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: hide widget</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 23 May 2013 20:08:10 +0000</pubDate>

<item>
<title>Chris on "Toggle/Show/Hide a widget or div."</title>
<link>http://themeshaper.com/forums/topic/toggleshowhide-a-widget-or-div#post-6458</link>
<pubDate>Sat, 12 Sep 2009 15:47:54 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">6458@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;you forgot a &#60;code&#62;)&#60;/code&#62; before closing the script tag.&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>Brydave on "Toggle/Show/Hide a widget or div."</title>
<link>http://themeshaper.com/forums/topic/toggleshowhide-a-widget-or-div#post-6440</link>
<pubDate>Fri, 11 Sep 2009 17:09:47 +0000</pubDate>
<dc:creator>Brydave</dc:creator>
<guid isPermaLink="false">6440@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi everyone,&#60;/p&#62;
&#60;p&#62;I found this tutorial at wpcult.com, and am trying to implement it in my header, however I can't seem to get it to work.&#60;/p&#62;
&#60;p&#62;link to tutorial:&#60;br /&#62;
&#60;a href=&#34;http://wpcult.com/how-to-showhide-a-widget-in-wordpress-with-jquery/&#34; rel=&#34;nofollow&#34;&#62;http://wpcult.com/how-to-showhide-a-widget-in-wordpress-with-jquery/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;basically I've added a widgetized area in my header by adding it into my functions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;code&#38;gt;register_sidebar(array(
       	&#38;#39;name&#38;#39; =&#38;gt; &#38;#39;Expand Aside&#38;#39;,
       	&#38;#39;id&#38;#39; =&#38;gt; &#38;#39;expand&#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;widgettitleexpand\&#38;quot;&#38;gt;&#38;quot;,
		&#38;#39;after_title&#38;#39; =&#38;gt; &#38;quot;&#38;lt;/h3&#38;gt;\n&#38;quot;,
    ));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The widget displays fine, and I've changed the tutorial code accordingly:&#60;br /&#62;
(#expand is the div id I added to the #header)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
//for toggling widgets
function toggleWidgets() {
	jQuery(&#38;#39;#expand h3.widgettitleexpand&#38;#39;).addClass(&#38;#39;plus&#38;#39;); 

	jQuery(&#38;#39;#expand h3.widgettitleexpand&#38;#39;).click(function() {
		$(this).toggleClass(&#38;#39;plus&#38;#39;).toggleClass(&#38;#39;minus&#38;#39;).next().toggle(180);
	});

} jQuery(document).ready(function() {
	toggleWidgets();
	}
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I don't know if it's just not using wp_enqueue_script('jquery'); or what, so any suggestions would be really appreciated since I am definitely  a jquery noob...&#60;/p&#62;
&#60;p&#62;Thanks again!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
