How to show and hide WordPress widgets with Jetpack

How to show and hide WordPress widgets with Jetpack

Cool trick! >> How to show or hide WordPress widgets with Jetpack

Sometimes you may want to show or hide a widget on certain pages. For example, you could hide your welcome/intro text on your about page, since having both on one page can be redundant. You could also hide a widget from your visitors while you’re testing it. Or maybe there’s a toolbar you want to add only for yourself.

There are different ways to do this, but I think the easiest is by using Jetpack — a plugin that brings the features of WordPress.com into your self-hosted WordPress site. I think this is an awesome functionality that a lot of people are unaware of, so I thought I’d do a quick tutorial to show you how!

Step 1: Install & activate Jetpack

If you don’t already have Jetpack installed, you’ll need to do that first. In your WordPress admin, install Jetpack by going to Plugins > Add New. Use the search box in the top right to look for “Jetpack by WordPress.com.” Click “Install Now” and then activate the plugin. In order to use Jetpack, you’ll have to connect it with a WordPress.com account. If you don’t already have one, it’s really quick and easy to set up. Once you’ve done that, make sure you are logged into it while you go back to your WordPress admin and click the “Connect to WordPress.com” button in Jetpack.

Make sure the “Widget Visibility” feature is activated by going to Jetpack > Settings and finding it in the list (toward the bottom of the page). If it’s activated, it’ll be highlighted in blue. To activate it, hover over it and select “Activate” to the right.
Activate widget visibility

Step 2: Add your widget

Go to Appearance > Widgets. Add or select the widget you’d like to show or hide. At the bottom of the widget, click “Visibility.”
Select widget visibility in widgets

Step 3: Show or hide

Select show or hide, and then select one of the conditions to create a rule. To create another rule, click “Add.” To remove a rule, click “Delete.”
Widget visibility create rule

Some of the conditions you can choose from include Category, Page, and Tag — all of which allow you to select a specific one if you want. There are lots of combinations you could do with the conditions and rules, giving you tons of different ways to customize your widget visibility!

Click save, and you’re done! Repeat for any widgets you’d like to toggle on and off.

Copyright © 2018 The Blog Manual · Theme by 17th Avenue