Title: Widget Visibility Not Working Correctly
Last modified: August 22, 2016

---

# Widget Visibility Not Working Correctly

 *  Resolved [Jeffrey Driver](https://wordpress.org/support/users/jdriver/)
 * (@jdriver)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/widget-visibility-not-working-correctly/)
 * Hi,
 * Apologies if this has already been posted, but I haven’t seen my exact issue 
   raised.
 * The widget visibility function isn’t working properly in all instances. I’m trying
   to make my site display a small menu in the sidebar on certain pages.
 * Show if
    Page is My Account Page is Shop Page is Shopping Cart Page is Checkout
   Page is Product
 * It only functions on a product page. The product page isn’t a single static page.
 * Here’s the link to my site – [http://www.jeffreydriver.co.uk/shop/](http://www.jeffreydriver.co.uk/shop/).
   If you check you should see that the menu only appears when looking at a product
   [http://www.jeffreydriver.co.uk/product/product-one/](http://www.jeffreydriver.co.uk/product/product-one/).
 * Any help gratefully appreciated. Thanks in advance.
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Adam Heckler](https://wordpress.org/support/users/adamkheckler/)
 * (@adamkheckler)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/widget-visibility-not-working-correctly/#post-5752746)
 * This is interesting, because I see the Shop Menu appear on some of those pages.
 * Here’s where I see it working:
 * [http://www.jeffreydriver.co.uk/my-account/](http://www.jeffreydriver.co.uk/my-account/)
   
   [http://www.jeffreydriver.co.uk/shopping-cart/](http://www.jeffreydriver.co.uk/shopping-cart/)
   [http://www.jeffreydriver.co.uk/shopping-cart/checkout/](http://www.jeffreydriver.co.uk/shopping-cart/checkout/)
 * I do **not** see it working here:
 * [http://www.jeffreydriver.co.uk/shop/](http://www.jeffreydriver.co.uk/shop/)
   
   [http://www.jeffreydriver.co.uk/product/](http://www.jeffreydriver.co.uk/product/)
 * So what do the two pages above (where it isn’t showing) have in common? It’s 
   that they aren’t really pages. 🙂
 * If you go to the Shop link and View Source in your browser, look at the `<body
   >` tag:
 * [http://d.pr/i/1eHHh/iKVPtfEy](http://d.pr/i/1eHHh/iKVPtfEy)
 * The class is “archive”, meaning it’s an archive, not a page. The `<body>` tag
   on a page looks like so:
 * [http://d.pr/i/DrO5/2eDk1FDa](http://d.pr/i/DrO5/2eDk1FDa)
 * See how it has a class of “page” and a page ID?
 * So the issue is that you are telling the Shop Menu widget to show on a _page_
   called “Shop” and a _page_ called “Product”, but there are no pages by those 
   names.
 * My guess is that this has something to do with the plugin you’re using to set
   up the store, The Cart Press. I don’t have access to this plugin to test things
   myself, but you may need to adjust the Widget Visibility settings to match up
   with whatever types of templates TCP is generating.
 * You might also consider contacting their support folks and asking for help if
   need be.
 *  Thread Starter [Jeffrey Driver](https://wordpress.org/support/users/jdriver/)
 * (@jdriver)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/widget-visibility-not-working-correctly/#post-5752845)
 * Hi,
 * Thanks for your help. I discovered that TheCartPress plugin was also breaking
   sub items in the menu so I’ve deleted it and found another ecommerce plugin.
 * Seemed the easiest way, and all is fine now.
 * Cheers.
 *  Plugin Contributor [Adam Heckler](https://wordpress.org/support/users/adamkheckler/)
 * (@adamkheckler)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/widget-visibility-not-working-correctly/#post-5752853)
 * Glad to hear you got things working!
 * Let me know if there’s anything else you need. 🙂 Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Widget Visibility Not Working Correctly’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 3 replies
 * 2 participants
 * Last reply from: [Adam Heckler](https://wordpress.org/support/users/adamkheckler/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/widget-visibility-not-working-correctly/#post-5752853)
 * Status: resolved