Quick Tip: Show (and Hide) Your Widgets

Control the visibility of your widgets.

If you missed the announcement of our widget visibility feature over on en.blog.wordpress.com, we wanted to let you know you’ve got a handy new tool in the widgets section to control the visibility of each widget. You can show or hide a widget based on rules you set.

Want to see how it works and learn to use it creatively? Head to Appearance » Widgets in your dashboard and we’ll get started!

You can test this on one of your currently displayed widgets, or drag and activate a new widget from the left to the right. When you open the widget, you’ll notice a new module at the bottom:

Widget Visibility Form

In the first drop-down menu, you can opt to show or hide that particular widget depending on rules you specify in the field(s) underneath. For example, if you want your Archives Widget to only appear on error and category archives pages, choose Show from the first drop-down menu, and then add two rules: Page is 404 Error Page and Category is All Category Pages. (You can add additional fields in the module by clicking the + link on the right.)

Widget Visibility Example

Normally, the widget will be shown (or hidden) if any of the fields apply. With the checkbox at the bottom, you can instead show (or hide) the widget if all of the fields apply.

As you can see in the drop-down options, visibility is controlled by five aspects: page type, category, tag, date, and author.

This feature is a simple way to control what content you’d like your visitors to see, and you can change the look of your sidebar (and site) depending on what a reader is currently viewing. Let’s say you don’t want your readers to see your About.me Widget, or your custom Text Widget with your bio and thumbnail, while they’re viewing your About page (which may look repetitive). In the widget’s settings, choose Hide and add Page is About, like this:

Widget Visibility Hide Example

You can make a variety of tweaks using the visibility feature. A few more ideas:

  • Hide your Flickr Widget on posts tagged with “photography” if you don’t want Flickr image thumbnails displayed when visitors are viewing a photo-heavy post. (There is such a thing as image overload!) (Select Hide and add Tag is Photography.)
  • If you have a group blog, show the Twitter Widget of the appropriate contributor on posts tagged with that author. (Select Show and add Author is [Contributor’s Name].)
  • If you’re an author, hide the custom Image Widgets linking to your books on your “Books” page to avoid duplicate information. (Select Hide and add Page is Books.)
  • Hide the widget displaying your blogroll on a “Favorites” page, which may also be full of links. (Select Hide and add Page is Favorites.)

How will *you* use the widget visibility feature? Let us know in the comments.

Show Comments

33 Comments

Comments are closed.

Close Comments

Comments

  1. Oh this is great! I’ve been using widget logic on the wordpress.org site that I run and it’s great to see similar capability now available on wordpress.com!

    Like

  2. Widgets need not necessarily be text based. I create menus on the side bar using the image widget. I can design the exact font I want, and link it with a URL using the image widget. Makes your page/post pop out a bit.

    Like

    1. Yep, I agree — I do the same thing on my own blog — image widgets are eye-catching indeed. Also, “Text Widgets” can also do so much — sometimes I think the name is misleading and doesn’t illustrate all the things you can do (use HTML, insert images, etc.).

      Like

      1. Sorry Cheri, I’m not finding it either. I see the blue “save widget” button on the right and white “cancel” button on the left.

        Like

      1. Hi Cheri,
        I’ve fixed it now per your instructions below regarding the Accessibility mode.
        Thank you!

        Like

    1. HI, it doesn’t show up in my widgets either. I tried using both Chrome and IE, just to see if its make a difference but….nope it’s not there.

      Like

      1. Hi Penelope — I looked into this and you can’t see the visibility option because you’ve got Accessibility mode enabled: https://wordpress.com/support/widgets/#accessibility-mode

        If you go into your dashboard to disable it (up on top right under “Screen Options”), then you’ll see the option. For now, there’s no way to see the visibility option unless you disable Accessibility, FYI, but we may try to fix this for the future.

        Like

  3. My homepage shows the whole of each post, in date order newest first. I would like the widgets to appear on the homepage, but not on any individual post or page. Is that possible?

    Like

    1. Hi Clare — if you want a widget to only appear on the homepage, you’d have to add two separate rules to hide it on a “post” page and a “page” page, like so:

      http://cl.ly/image/3r09422y2S2j

      Try it out with one of your widgets, like your top Gravatar: Hello widget. If that works for you, you can repeat the same rules for each of your widgets down your sidebar.

      Like

    1. Hi Ramesh7777! I’m not quite sure what you’re asking — is this related to the widget visibility tool? If so, can you describe a bit more or link or send a screenshot of an example of what you’d like to do? Thanks!

      Like

      1. Hi Cheri, Thanks for visiting my wordpress site: I was asking for help and you responded. Sometimes I need to post an article with a picture; usually a portrait. The mechanism I may use, is a save to my pictures File, and then post it to the wordpress page:
        It does not post the picture, just the text; Tell me what am I doing that is wrong?

        Like

  4. LOVE this feature! Is it then possible to hide, let’s say, left side widgets with ONLY posts? If so, I would totally use this feature. It would allow my posts to be much wider when viewed. Thanks for the update, Cheri!!!

    Like

    1. Hi Nando — love your enthusiasm over this feature! You can test it out with one of your widgets on the left side, ie, the calendar of http://www.cyanskies.com/

      http://cl.ly/image/091q0v033w0M

      If you like the result, you’d set this rule for each widget you want to hide on individual posts.

      I’m not sure, however, what the end result will look like if you hid all of the left-side widgets at once — I’m unsure if the post section will expand, for instance, as I’m not sure that’s how it works.

      Like

      1. Thanks so much for the reply! Yes, I tried your suggestion but unfortunately, all that’s left behind is a blog roll and meta info which for the life of me I cannot remove! Removing the widgets on posts does not expand page 😦

        Like

    2. Hi there — sorry for the late reply. I missed your second comment. Unfortunately, it doesn’t seem like the widget visibility tool allows the expanding of the page as you’d like.

      (It’s worth noting, however, that your theme Oxygen supports the full width template option, which creates a page without the sidebar:

      http://cl.ly/image/1u1K1l0e2Q1u

      But that’s not quite what you’re looking for…)

      Like