WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Plugins» How to Show or Hide Widgets on Specific WordPress Pages

How to Show or Hide Widgets on Specific WordPress Pages

Last updated on September 11th, 2017 by Editorial Staff
53 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Show or Hide Widgets on Specific WordPress Pages

In our previous article, we showed you how you can extend the power of your default WordPress widgets. We mentioned a plugin called Widget Logic which you could use to show the widget on specific pages utilizing the conditional tags. But not everyone can understand those conditional tags. In this article, we will show you how to easily show or hide widgets on specific WordPress pages.

Show or hide widgets on specific WordPress posts and pages

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

First thing you need to do is install and activate the Widget Context plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Appearance » Widgets page. Click on any widget that you want to show or hide. This will expand the widget settings and you will see a new ‘Widget Context’ section.

Widget Context settings

Widget Context plugin allows you to easily show / hide widgets on selected WordPress posts, pages, archives, and more. Simply select the sections where you want to show or hide the widget from the settings.

You can also show or hide widgets on specific URLs. Simply add the URL in widget settings.

Don’t forget to click on the save button to store your settings. You can now visit your website to see it in action.

We hope this article helped you learn how to show or hide widgets on specific WordPress pages. You may also want to see our list of the most useful WordPress widgets that you can try on your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

53 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

60 Comments

Leave a Reply
  1. Ian Hanson says:
    Nov 5, 2019 at 11:44 am

    After hours of perusing all my WP Theme options (why it takes me this long to solve problems I’ll never know) I Googled how to show widgets on certain pages and not others…and found your post.

    It’s SO easy now. How I lived without it before I’ll never know. Actually, I don’t think I was living. Thanks!

    Reply
    • WPBeginner Support says:
      Nov 6, 2019 at 9:18 am

      Glad our guide could help :)

      Reply
  2. Roman says:
    Aug 28, 2019 at 11:17 am

    This is an awesome free plugin. Worked like a charm. THank you.

    Reply
    • WPBeginner Support says:
      Aug 29, 2019 at 9:50 am

      Glad our recommendation could help :)

      Reply
  3. Jim Gersetich says:
    Jul 22, 2019 at 12:42 pm

    The plugin referenced does not work. I installed Widget Context and activated it. However, the Appearance | Widgets page still only shows the defaults (Blog Sidebar, Footer 1, and Footer 2.) The dialog box you show does not appear, even after closing the browser and reentering.

    Reply
    • WPBeginner Support says:
      Jul 22, 2019 at 1:13 pm

      The section should be on individual widgets. If they are not appearing you may need to reach out to the plugin’s support to see possible issues.

      Reply
  4. Vikram Bheel says:
    Oct 9, 2018 at 11:28 pm

    Sir, I bought the Business 5 theme from the instamajo on October 3, 2018. I have 2 problems in customizing this theme.

    1. Apperiance >> Customize >> Widget

    Sidebar 1 is not visible here in place of widget and a message is visible

    Your theme has 1 other widget area, but this particular page does not display it.

    You can navigate to other pages on your site while using the Customizer to view and edit the widgets on those pages.

    How to solve this problem

    2. The option of logging in footer area of ​​this theme is also coming, how to remove it

    Please request to the Wpbeginner team to resolve these issues.

    Reply
    • WPBeginner Support says:
      Oct 9, 2018 at 11:38 pm

      Hi Vikram,

      Your theme does not display widgets on the page you are viewing in the customizer. An easier way to add widgets is by going to Appearance > Widgets page instead.

      Reply
  5. Sandra says:
    Jul 12, 2018 at 4:50 pm

    Total Awesomeness! Thank you so much!!! I’m finally going to have a great looking site!

    Reply
  6. Abby says:
    Jul 2, 2018 at 10:25 am

    Hello, I don’t know to get my subscribe widget to show on every page. Right now it shows on every page on my computer but only shows on my “About Me” Page for others. I have selected for it to appear everywhere. Can you help?

    Reply
  7. Katie says:
    Jul 1, 2018 at 7:36 pm

    So I am totally new to this whole thing. I managed to get the TopConsult theme installed and now Widget Context but unless I am being a dumb blonde it’t not working. When I click on a widget the only option I have is to add or cancel. As well as there are “default widgets” built into the theme one of which is a smart slider that I only want to appear on the home page! And it doesn’t look like I can edit those at all? Can anybody help me?!

    Reply
  8. Phil says:
    May 10, 2018 at 11:42 am

    Widget Context clashes with Site Origin Widgets and disallows access to the Widgets.php file.

    Reply
  9. Julie Spears says:
    Mar 5, 2018 at 11:50 am

    I am trying to use the visibility option on my Text widget to hide the sidebar from a specific page. But it isn’t working. The widget still shows up on that page. Any ideas?

    Reply
  10. Gary McGeown says:
    Dec 17, 2017 at 7:55 am

    super, one more small job completed.

    Thanks,

    Gary

    Reply
  11. Sergio says:
    Dec 11, 2017 at 9:30 am

    The “popular posts” widget isn’t visible to the public. How can this be adjusted?

    Reply
  12. john says:
    Nov 30, 2017 at 12:20 am

    I am sorry but widget context does not have the ability to display on every page? If I click the setting that says show widget everywhere it does not display my slider widget on every page. If I click on show widget on selected and enter a custom URL (the URL to one of the pages on my site) it still does not show the slider widget on that page. I am not sure why or how to fix this but help would be appreciated.

    Reply
    • Anand says:
      Dec 10, 2017 at 10:46 am

      have a similar issue as John..

      Reply
    • Ganesh says:
      Dec 12, 2017 at 7:17 am

      Even i have similar issue.

      Reply
  13. Debabrata Mondal says:
    Oct 16, 2017 at 12:08 pm

    Thank you! That was really helpful!

    Reply
  14. santhosh says:
    Sep 27, 2017 at 4:42 pm

    Awesome work! very easy to use plugin :) thank you very much.

    Reply
  15. David Norwood says:
    Sep 14, 2017 at 11:27 pm

    Thank you for your reply. I need a plugin like Display Widget, as I have it set up to show menus on the sidebar in specific categories . Maybe I am doing it incorrectly, but it seems to be more global?

    Reply
  16. David Norwood says:
    Sep 14, 2017 at 11:02 pm

    Thank you for the plug-in suggestion. I need a replacement for Display Widget

    however, widget context Untested with your version of WordPress, which is the most recent .

    Do you if it will be updated anytime soon?

    Reply
    • WPBeginner Support says:
      Sep 14, 2017 at 11:16 pm

      Hi David,

      We tested it with the latest WordPress version and it works well.

      Reply
  17. David Law says:
    Sep 11, 2017 at 10:20 am

    Display Widgets Plugin v2.6.3.1 has been removed from the repo due to hacking code:

    David Law

    Reply
    • WPBeginner Support says:
      Sep 11, 2017 at 10:47 pm

      Hi David,

      Thanks for the heads up. We have removed the plugin mention and replaced it with a new plugin.

      Reply
      • David Norwood says:
        Sep 14, 2017 at 11:03 pm

        which plugin did you replace Display Widget with. I have not been able to get Widget options to work yet.

        Reply
  18. Noel says:
    Aug 2, 2017 at 7:07 am

    Hi All, it seems this plugin has been removed. Anyone know of another plugin that operates in the same way – showing certain widgets on certain pages and hiding sidebar (show full width page) on pages you do not want the widgets to appear on – similar to what Display Widgets did?

    Reply
    • Joel Newcomer says:
      Sep 8, 2017 at 4:01 pm

      Widget Options is the best alternative that I’ve been able to find.

      Reply
  19. Alex says:
    Jun 23, 2017 at 7:44 pm

    Unfortunately, it looks like the latest WordPress update broke editing the widgets. The settings I had set for my widgets before the update remain, but I can’t change them or add settings to future widgets. Does anyone have a fix for this?

    Reply
  20. Steve says:
    Jun 10, 2017 at 12:26 pm

    This all works great, however, there is one situation where it does NOT work and that is for a specific URL that is part of a third party integration, like aMember.

    The aMember page do not appear as any of the normal taxonomy, so you would need to somehow add the specific URL to the widget. So far I do not see that functionality.

    Wondering if there is another way to hide widgets you want to shown on the rest of the site, but not on these third party integration pages. Any ideas?

    Reply
    • Steve says:
      Jun 10, 2017 at 12:41 pm

      Took me only a few minutes to figure this one out, here’s the solution:
      For any pages that reside outside of the WordPress taxonomy, you can use the logic setting. Click the gear symbol, then open the “logic” tab.
      In my case, simply entering the conditional: is_page( $page = ‘/member/*.php’ )
      hides the widgets on all pages associated with my WP integrated third party membership scripts.

      Reply
  21. Mark Saffell says:
    Apr 27, 2017 at 8:40 am

    Thank you! This was the perfect video. It made my life easy. Great job.

    Reply
  22. Michael J Ming says:
    Apr 16, 2017 at 10:15 am

    Almost too easy. I used Display Widget for the first time and it did exactly want I wanted it too.

    Reply
  23. Miriam says:
    Mar 9, 2017 at 12:39 am

    The widget is only showing up on categories, not on pages. I have tried all different combinations and none but categories are working. Please help.

    Reply
    • resa says:
      Sep 14, 2017 at 12:23 pm

      Uninstall it. It’s generating spam. Try the one suggested above.

      Reply
  24. Lori says:
    Mar 8, 2017 at 3:08 pm

    I’m using the Divi theme and the widget isn’t showing on the pages I checked. I have updated to the latest version of the theme and WordPress. Help!

    Reply
  25. lee says:
    Jan 18, 2017 at 9:01 pm

    will this allow me to use controversial content without being banned by google adsense

    Reply
  26. Shaun Taylor says:
    Jan 17, 2017 at 6:45 am

    Hello,

    This is great and just what I’m looking for, however Is there a way, instead of showing or hiding on different pages, to show and hide in different sections?

    For example if my site structure is:

    Home
    About
    –Subpage
    –Subpage
    –Subpage
    Work
    Services
    –Subpage
    –Subpage
    –Subpage
    Contact

    So rather than me having to choose all of the sub pages in the service section, can I just choose everything under example.com/services/ will show or hide a certain widget?

    Any help would be appreciated! :)

    Reply
  27. Gaurav Kumar says:
    Dec 22, 2016 at 9:41 am

    Hi,

    I have removed text widget from blog, still it is loading when I am opening the site.

    Please tell me what should I do.

    Reply
    • WPBeginner Support says:
      Dec 22, 2016 at 11:19 am

      You are probably seeing a cached version of your blog. Purge your cache and revisit the page.

      Reply
      • Gaurav Kumar says:
        Dec 25, 2016 at 12:55 pm

        Thank you but even now it is showing widget in Older post pages.

        Is there a plugin to stop it showing in older pages like page no 2 page 3 page 4 etc.

        Reply
  28. Victor says:
    Oct 19, 2016 at 4:47 pm

    Hey, does this work with WP 4.5.4 or later? Because I have installed it and shows no difference. Im trying to hide a widget from a page.

    Thanks

    Reply
    • Steph says:
      Nov 1, 2016 at 2:22 pm

      I am having exactly the same problem, it used to work for me but has stopped working recently

      Reply
  29. Mahendra says:
    Sep 9, 2016 at 8:36 pm

    It will work 100% on some themes.
    But in other themes when you will hide widget, a message will display instead of widget.

    I have a trick for second type of themes.

    Add only text widget, inside the text widget, text will be nothing.

    I have used this trick in my sites. for example I have used in my own site.

    Reply
  30. Jeff says:
    May 13, 2016 at 1:13 am

    Thanks for the post, i’ve been trying to figure this out for quite some time

    Reply
  31. Robert says:
    May 4, 2016 at 5:18 am

    I don´t think it works with WP 4.5?

    Reply
    • WPBeginner Support says:
      May 4, 2016 at 10:44 pm

      We checked, it works.

      Reply
      • badongranger says:
        May 5, 2016 at 2:39 pm

        really? on mine it doesn’t

        Reply
        • WPBeginner Support says:
          May 5, 2016 at 7:26 pm

          Please contact plugin author for support. They would be able to help you better.

      • Fazal says:
        Jul 15, 2016 at 5:35 am

        It’s not working for me, WordPress 4.5.3.

        Reply
  32. Anne says:
    Dec 22, 2015 at 6:35 am

    Does this plugin also work with posts rather than pages?

    Reply
    • Steven says:
      Jun 14, 2016 at 3:37 pm

      Yes! Also u can also filter by page/post id

      Reply
  33. Mujahid Rasul says:
    Oct 20, 2015 at 2:56 pm

    I installed and used Widgets Display plugin. why hidden widgets are still occupying space in the site pages. I mean the there should be left only one column showing the text on the whole screen. Now the widgets are not showing but space is empty. please provide solution of this problem

    Reply
    • Danielle says:
      Jul 16, 2017 at 12:42 pm

      I am having this problem as well. Have you found a solution?

      Reply
  34. Bob Clinton says:
    Aug 23, 2015 at 6:31 pm

    Installed on WP 4.3 and WP 3.5.1 Just get a blank text area field under the words “Widget logic: ”

    What am I missing???

    Reply
    • WPBeginner Support says:
      Aug 25, 2015 at 12:05 am

      Update your WordPress plugins.

      Reply
  35. Anurag Singh says:
    Jul 9, 2015 at 1:03 am

    very nice i am very thank full to you wondering from last month for this.
    now it’s done

    Reply
  36. AyhanSipahi says:
    Sep 8, 2011 at 7:03 pm

    i used to use widget logic before this.

    is_page(); is_single(23,454,53,1,); used to use code based taxonomies

    Reply
  37. wpbeginner says:
    Aug 10, 2011 at 6:20 am

    @Ynotwebdesigns Yes it is because we tried it :)

    Reply
  38. Ynotwebdesigns says:
    Aug 10, 2011 at 6:17 am

    Is this plugin compatible with the latest WP version?

    Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
RafflePress - WordPress Giveaway and Contest Plugin
RafflePress
Giveaway and Contest Plugin for WordPress. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2021 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2021)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2021)
    • SiteGround Reviews from 4464 Users & Our Experts (2021)
    • Bluehost Review from Real Users + Performance Stats (2021)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2021 – Step by Step Guide
Deals & Coupons (view all)
MemberPress
MemberPress Coupon
Get up to 50% OFF on MemberPress WordPress premium membership plugin.
Liquid Web
Liquid Web Coupon
Get 50% OFF on Liquid Web managed WordPress hosting plans for 3 months. From just $9.50.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
  • Growth Fund
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon
  • AIOSEO

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress Security by Sucuri.