Widget Logic

Description: “This plugin gives every widget an extra control field
called “Widget logic” that lets you control the pages that the widget
will appear on.”
• Go to Plugins, then type in “Widget Logic” on the search box.
Click “Install Now”

• Once you have installed and activated the plugin in WordPress,
go to Appearance >> Widgets

• If you look on each widget, you can see a box named “Widget
Logic.”This field lets you control how your widgets appear on
the sidebar.

You need to know the conditional tags that can be used if you want
to display or hide widgets in WordPress pages.
Displaying Widget
• If you want to display the widget is a specific page, all you
have to do is just paste the code is_page() in the widget logic
box under the corresponding widget.
• But if you want to display the widget in 2 or more pages, use
the code is_page(array(5,6)) where 5 and 6 is the page ids of a
certain pages.. You can also use the page titles instead of page
Hiding Widget
• If you want to hide the widget in all pages, use the code !
is_page(). The “!” symbol denotes “don’t display.”
Here are just some of the conditional tags that you can use:
• is_page() – to display or hide widgets
• is_single() – for wordpress posts
• is_category – for category archive pages
• is_tag() – for tag archive pages
• is_date() – for daily, monthly, yearly archive pages
• is_author() – for author archive displayed
• is_404() – is 404 page shown
• is_active_sidebar() – if sidebar in active
• is_plugin_active() – is a plugin is active
Click here to learn more about conditional tags.

Click here to learn more about conditional tags.

[easy-pricing-table id=”5611″]
Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

Pin It on Pinterest