Innovate | Connect | Transform
ContactService statusUSD $

GICT knowledge base

How to Hide Widgets on Specific Pages in WordPress

Published

WordPress

Note: This is an old article and some options may not work with latest WordPress sites. Click here to view the updated article.

Widgets comprise a vast range of useful on-page elements for your WordPress website, and in addition to the various widgets available with any default WordPress installation, many plugins come with widgets of their own to add further functionality to your website. Widgets are automatically displayed on every page of your website, even if you have a static homepage. A basic WordPress installation provides no feature whereby you can choose which widgets are displayed where, although there are a number of plugins which you can use to add this functionality. One of the most popular is Widget Logic, although novice users may find this rather confusing to use, since it relies on conditional tags from the WordPress API. Most users will find that the Display Widgets plugin provides the features which they need, and this is the plugin we will be using for the purpose of this tutorial.

 

  1. Install the Display Widgets plugin by navigating to Plugins > Add New in your administrator dashboard and search for the plugin. Click “Install Now” and activate the plugin once installation is complete.
  2. Navigate to Appearance > Widgets. If the widget you want to use is currently inactive, drag it from the Available Widgets column into the widget area where you want it to appear.
  3. In the right-side column, open the widget you want to hide on certain pages by clicking on it.
  4. A new range of options will now appear accompanying every widget. You can also choose to display widgets only for users who are logged in, logged out or for everyone who visits the website. To hide widgets on specific pages, ensure that “Hide on checked pages” is selected from the dropdown box. Simply check the boxes beside the pages you want to hide the widget on and click “Save”.
  5. Repeat the above process for any other active widgets which you want to hide on certain pages.
    Hide Widgets Widgets

Related guides

Account services are unavailable until the production backend is configured.