If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

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

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 activate ‘Widget 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)