+91 88 00 563434 [email protected] Blog open-book Knowledge Base

Find Solutions in Our Knowledge Base

How to Show or Hide Widgets on Specific WordPress Pages

You are here:
Sharing is Caring

Components are an inevitable aspect of a WordPress website. Components can provide additional functionality to your pages. The primary purpose of a component is that it will be displayed on every page of your website. While this can be advantageous, there are times when it may create a negative impression. Have you ever encountered such a situation during your blog development? This tutorial will explain how to display/ hide components on specific WordPress pages.

What is a Component?

A component is a block that can perform specific functions on your website. You can place these components in areas such as sidebars, footers, etc. Below is an example of a calendar component. The most attractive feature of a component is that it will appear on any page of your website. However, this may sometimes have a negative impact on your website.

display or hide components

Can you imagine how it would look if there’s a calendar component on your gallery page? There is no way to determine on which page a component should be displayed. This is the default setting. However, in this tutorial, we will show/ hide components on the pages you desire. We will achieve this with the help of a plugin called “Component Context”. Another advantage is that you can manage each component individually. You can choose which component should be displayed on which pages.

Steps to Hide/ Show Components

1) As mentioned earlier, we need to install a WordPress plugin called “Component Context”. You can follow the steps described in this tutorial to install the plugin: https://www.webhostingpeople.web/ideas/kb/how-to-install-plugins-in-wordpress/

2) Now, we can configure which component should be displayed on a specific page. The details are given below. Please remember that you need to perform these actions within the WordPress dashboard itself. Go to Appearance >> Components from the dashboard.

display or hide components

Now you can see the list of available components. Please click on the desired component. Here, we are taking the Calendar Component as an example.

display or hide components

3) When selecting the component, a pop-up window will appear with the available areas where you can place the component. You need to select the desired area and click on the “Add Component” button to proceed.

display or hide components

Now you will be redirected to the next page where the available options for the component will be displayed. You can select the preferred option from the listed choices.

display or hide components

4) You can click on the drop-down menu to view the available show/ hide options for the component. You can select from four options in the menu. The options are shown in the screenshot below.

display or hide components

5) To display the component on specific pages, you can either select the second or third option and check the checkboxes next to the desired pages to show/ hide components on those pages. After selecting the options, please click on the “Save” button to save the changes made.

display or hide components

This is how you can display/ hide WordPress components on specific pages.

If you need any further assistance, please reach out to our support department.


Sharing is Caring

Leave a Comment

Table of Contents