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 ProductIt 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/. If you check you should see that the menu only appears when looking at a product http://www.jeffreydriver.co.uk/product/product-one/.
Any help gratefully appreciated. Thanks in advance.
-
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/shopping-cart/
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/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:The class is “archive”, meaning it’s an archive, not a page. The
<body>tag on a page looks like so: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.
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.
Glad to hear you got things working!
Let me know if there’s anything else you need. 🙂 Thanks!
The topic ‘Widget Visibility Not Working Correctly’ is closed to new replies.