{"id":46568,"date":"2015-04-10T06:12:36","date_gmt":"2015-04-10T10:12:36","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=46568"},"modified":"2016-02-22T10:21:17","modified_gmt":"2016-02-22T15:21:17","slug":"wordpress-how-to-make-widgets-appeardisappear-on-needed-pages-using-widget-logic-plugin","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-make-widgets-appeardisappear-on-needed-pages-using-widget-logic-plugin.html","title":{"rendered":"WordPress. How to make widgets appear\/disappear on needed pages (using &#8216;Widget Logic&#8217; plugin)"},"content":{"rendered":"<p>\r\n<p>This tutorial will show you how to make the widget appear on the needed pages in older versions of WordPress CMS  <strong>(up to 3.6)<\/strong>.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Mn1EtQk2IIE?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to make widgets appear\/disappear on needed pages (using &#8216;Widget Logic&#8217; plugin)<\/a><\/p>\r\n<p class=\"info-box\"> In case you use the latest WordPress version, you can skip this tutorial and manage widget visibility <a href=\"\/help\/wordpress-how-to-manage-widgets-visibility.html\" target=\"_blank\">this way<\/a>.<\/p>\r\n<p>Let&#8217;s see how to make the widget appear on the needed page in older versions of WordPress:<\/p>\r\n<ol>\r\n<li>\r\n<p>Navigate to <strong>Plugins<\/strong> -&gt; <strong>Add New<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Search for <strong>&#8216;Widget Logic&#8217;<\/strong> plugin.<\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>Install<\/strong> and <strong>activate<\/strong> &#8216;Widget Logic&#8217; plugin:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_1-300x228.png\" alt=\"How_to_control_the_pages_that_the_widget_will_appear_on_1\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-46569\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_1-300x228.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_1-150x114.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_1.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>This plugin gives every widget an extra control field called <strong>&#8216;Widget logic&#8217;<\/strong> that lets you control the pages where the widget will appear:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_2-300x273.png\" alt=\"How_to_control_the_pages_that_the_widget_will_appear_on_2\" width=\"300\" height=\"273\" class=\"aligncenter size-medium wp-image-46570\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_2-300x273.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_2-150x136.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_2.png 592w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>The <strong>&#8216;Widget logic&#8217;<\/strong>  field lets you use <a href=\"http:\/\/codex.wordpress.org\/Conditional_Tags\" target=\"_blank\">WP&#8217;s Conditional Tags<\/a>, or any general PHP code.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Let&#8217;s see how to display a widget on <strong>specific page<\/strong>:<\/p>\r\n<ol>\r\n<li>\r\n<p>Navigate to <strong>Appearance<\/strong> -&gt; <strong>Widgets<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Open the desired widget to see the widget settings.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Paste the following code into <strong>&#8216;Widget logic&#8217;<\/strong> field:<\/p>\r\n<pre>is_page( 'about-us' )<\/pre>\r\n<p> where <strong>&#8216;about-us&#8217;<\/strong> is the slug of your specific page:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_4-300x163.png\" alt=\"How_to_control_the_pages_that_the_widget_will_appear_on_4\" width=\"300\" height=\"163\" class=\"aligncenter size-medium wp-image-46571\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_4-300x163.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_4-150x81.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_4.png 689w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Note that the page needs to be a<strong> &#8216;Default template&#8217; <\/strong>in order to display widgets: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_3-257x300.png\" alt=\"How_to_control_the_pages_that_the_widget_will_appear_on_3\" width=\"257\" height=\"300\" class=\"aligncenter size-medium wp-image-46572\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_3-257x300.png 257w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_3-128x150.png 128w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/How_to_control_the_pages_that_the_widget_will_appear_on_3.png 360w\" sizes=\"(max-width: 257px) 100vw, 257px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>This is the end of the tutorial. Now you know how to make the favourite widget appear on the needed page. <\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Mn1EtQk2IIE?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to make widgets appear\/disappear on needed pages (using &#8216;Widget Logic&#8217; plugin)<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to make the widget appear on the needed pages in older versions of WordPress CMS  (up to 3.6)<\/p>\n","protected":false},"author":13,"featured_media":46576,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[572,559,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/46568"}],"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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=46568"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/46568\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/46576"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=46568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=46568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=46568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}