{"id":11831,"date":"2014-10-24T01:55:00","date_gmt":"2014-10-24T05:55:00","guid":{"rendered":"http:\/\/info.template-help.com\/?p=11831"},"modified":"2016-04-12T05:47:43","modified_gmt":"2016-04-12T09:47:43","slug":"wordpress-hidden-widgets","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-hidden-widgets.html","title":{"rendered":"WordPress. How to manage hidden widgets"},"content":{"rendered":"<p>\r\n<\/p>\r\n<p>This tutorial will show you how to remove hidden widgets from sidebar in WordPress based on CherryFramework. <\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=JJ1P90XFq74?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to manage hidden widgets<\/a><\/p>\r\n<p>Hidden widgets are displayed in sidebar area of the posts pages when Sidebar widget area is empty. <\/p>\r\n<p>Default hidden widgets are the following: <strong>Search , Navigation, Archives<\/strong> and <strong>Meta<\/strong>. <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2011\/11\/WordPress_How_to_manage_hidden_widgets.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/11\/WordPress_How_to_manage_hidden_widgets-300x233.jpg\" alt=\"WordPress_How_to_manage_hidden_widgets\" width=\"300\" height=\"233\" class=\"aligncenter size-medium wp-image-39321\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/11\/WordPress_How_to_manage_hidden_widgets-300x233.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/11\/WordPress_How_to_manage_hidden_widgets-150x116.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/11\/WordPress_How_to_manage_hidden_widgets.jpg 977w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>Open your WordPress installation directory and navigate to<strong> wp-content\\themes\\CherryFramework<\/strong> folder. <\/p>\r\n<\/li>\r\n<li>\r\n<p>Copy<strong> sidebar.php<\/strong> from CheryFramework folder to<strong> \\themeXXXXX<\/strong> folder (where XXXXX is your actual theme number). This will keep your changes if CherryFramework is updated.<\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>sidebar.php<\/strong> file contains the following code:<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;?php\r\n  \/**\r\n  * Sidebar Name: Static Sidebar\r\n  *\/\r\n  ?&gt;\r\n&lt;?php if ( ! dynamic_sidebar( theme_locals(&quot;sidebar&quot;) )) : ?&gt;\r\n  &lt;div id=&quot;sidebar-search&quot; class=&quot;widget&quot;&gt;\r\n  &lt;?php echo '&lt;h3&gt;' . theme_locals(&quot;search&quot;) . '&lt;\/h3&gt;'; ?&gt;\r\n  &lt;?php get_search_form(); ?&gt; &lt;!-- outputs the default WordPress search form--&gt;\r\n  &lt;\/div&gt;\r\n &lt;div id=&quot;sidebar-nav&quot; class=&quot;widget menu&quot;&gt;\r\n  &lt;?php echo '&lt;h3&gt;' . theme_locals(&quot;navigation&quot;) . '&lt;\/h3&gt;'; ?&gt;\r\n  &lt;?php wp_nav_menu( array('menu' =&gt; 'Sidebar Menu' )); ?&gt; &lt;!-- editable within the WordPress backend --&gt;\r\n  &lt;\/div&gt;\r\n &lt;div id=&quot;sidebar-archives&quot; class=&quot;widget&quot;&gt;\r\n  &lt;?php echo '&lt;h3&gt;' . theme_locals(&quot;archives&quot;) . '&lt;\/h3&gt;'; ?&gt;\r\n  &lt;ul&gt;\r\n  &lt;?php wp_get_archives( 'type=monthly' ); ?&gt;\r\n  &lt;\/ul&gt;\r\n  &lt;\/div&gt;\r\n &lt;div id=&quot;sidebar-meta&quot; class=&quot;widget&quot;&gt;\r\n  &lt;?php echo '&lt;h3&gt;' . theme_locals(&quot;meta&quot;) . '&lt;\/h3&gt;'; ?&gt;\r\n  &lt;ul&gt;\r\n  &lt;?php wp_register(); ?&gt;\r\n  &lt;li&gt;&lt;?php wp_loginout(); ?&gt;&lt;\/li&gt;\r\n  &lt;?php wp_meta(); ?&gt;\r\n  &lt;\/ul&gt;\r\n  &lt;\/div&gt;\r\n&lt;?php endif; ?&gt;\r\n\r\n<\/pre>\r\n<p>As you can see from the file, each widget has its own code in the file. <\/p>\r\n<ol>\r\n<li>\r\n<p><strong>Search widget<\/strong>:<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;div id=&quot;sidebar-search&quot; class=&quot;widget&quot;&gt;\r\n  &lt;?php echo '&lt;h3&gt;' . theme_locals(&quot;search&quot;) . '&lt;\/h3&gt;'; ?&gt;\r\n  &lt;?php get_search_form(); ?&gt; &lt;!-- outputs the default WordPress search form--&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<\/li>\r\n<li>\r\n<p><strong>Navigation widget<\/strong>:<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;div id=&quot;sidebar-nav&quot; class=&quot;widget menu&quot;&gt;\r\n  &lt;?php echo '&lt;h3&gt;' . theme_locals(&quot;navigation&quot;) . '&lt;\/h3&gt;'; ?&gt;\r\n  &lt;?php wp_nav_menu( array('menu' =&gt; 'Sidebar Menu' )); ?&gt; &lt;!-- editable within the WordPress backend --&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<\/li>\r\n<li>\r\n<p><strong>Archives widget<\/strong>:<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;div id=&quot;sidebar-archives&quot; class=&quot;widget&quot;&gt;\r\n  &lt;?php echo '&lt;h3&gt;' . theme_locals(&quot;archives&quot;) . '&lt;\/h3&gt;'; ?&gt;\r\n  &lt;ul&gt;\r\n  &lt;?php wp_get_archives( 'type=monthly' ); ?&gt;\r\n  &lt;\/ul&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<\/li>\r\n<li>\r\n<p><strong>Meta widget<\/strong>:<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;div id=&quot;sidebar-meta&quot; class=&quot;widget&quot;&gt;\r\n  &lt;?php echo '&lt;h3&gt;' . theme_locals(&quot;meta&quot;) . '&lt;\/h3&gt;'; ?&gt;\r\n  &lt;ul&gt;\r\n  &lt;?php wp_register(); ?&gt;\r\n  &lt;li&gt;&lt;?php wp_loginout(); ?&gt;&lt;\/li&gt;\r\n  &lt;?php wp_meta(); ?&gt;\r\n  &lt;\/ul&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<\/li>\r\n<\/ol>\r\n<\/li>\r\n<li>Remove the code or comment it out to disable hidden widget in the sidebar.<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=JJ1P90XFq74?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to manage hidden widgets<\/a>\r\n<\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to remove hidden widgets from sidebar in WordPress based on CherryFramework.<\/p>\n","protected":false},"author":54,"featured_media":11834,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1723,911,559,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/11831"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=11831"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/11831\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/11834"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=11831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=11831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=11831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}