Categories

Featured templates

WordPress. How to make widgets appear/disappear on needed pages (using ‘Widget Logic’ plugin)

Template-help.com Team April 10, 2015
Rating: 5.0/5. From 3 votes.
Please wait...

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).

WordPress. How to make widgets appear/disappear on needed pages (using ‘Widget Logic’ plugin)

In case you use the latest WordPress version, you can skip this tutorial and manage widget visibility this way.

Let’s see how to make the widget appear on the needed page in older versions of WordPress:

  1. Navigate to Plugins -> Add New.

  2. Search for Widget Logic’ plugin.

  3. Install and activateWidget Logic’ plugin:

    How_to_control_the_pages_that_the_widget_will_appear_on_1

  4. This plugin gives every widget an extra control field called Widget logic’ that lets you control the pages where the widget will appear:

    How_to_control_the_pages_that_the_widget_will_appear_on_2

  5. The Widget logic’ field lets you use WP’s Conditional Tags, or any general PHP code.

Let’s see how to display a widget on specific page:

  1. Navigate to Appearance -> Widgets.

  2. Open the desired widget to see the widget settings.

  3. Paste the following code into Widget logic’ field:

    is_page( 'about-us' )

    where ‘about-us’ is the slug of your specific page:

    How_to_control_the_pages_that_the_widget_will_appear_on_4

  4. Note that the page needs to be a ‘Default template’ in order to display widgets:

    How_to_control_the_pages_that_the_widget_will_appear_on_3

This is the end of the tutorial. Now you know how to make the favourite widget appear on the needed page.

Feel free to check the detailed video tutorial below:

WordPress. How to make widgets appear/disappear on needed pages (using ‘Widget Logic’ plugin)

Wordpress Web Themes
This entry was posted in WordPress Tutorials and tagged page, widget, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket