kasparsd / widget-context-wporg

Widget Context for WordPress
https://widgetcontext.com
Other
43 stars 13 forks source link

Re: Show or hide widgets on specific pages #24

Closed thinkhuman closed 5 years ago

thinkhuman commented 7 years ago

Am I missing this feature? The plugin--which is great--says it can show/hide widgets in specific pages. This doesn't seem to be true--I can't specify which if my site's pages to display widgets on.

kasparsd commented 6 years ago

@thinkhuman Yes, you can use the "Target by URL" feature to specify the relative URLs of the pages you want to target. You can also use a wildcard * to select all child pages, etc.

cintacks commented 5 years ago

@kasparsd sorry to bring up an old thread but I have never been able to reliably get Target by URL to work. Every other setting works but that one doesn't. Using 1.0.4.

Settings:

Target by URL page/specific-subpage page/specific-subpage/*

thinkhuman commented 5 years ago

@kettultim Same. I've never got it to reliably work.

kasparsd commented 5 years ago

@kettultim @thinkhuman What is the URL you're targeting? What is the URL of the site / WP install? Feel free to replace the domain with example.com.

cintacks commented 5 years ago

@kasparsd apologies for the late reply. This is what we're using:

domain: https://example.com

Target by URL:

subpage
subpage/*

Tried this as well to no avail:

https://example.com/subpage
https://example.com/subpage/*

As well as just the root domain (no 'https://')

Haven't had the time to look into the plugin code - just thought you should know.

kasparsd commented 5 years ago

@kettultim Both should work. For example, I'm using the following rules:

meta-widget-post-selector

to show the Hello World Meta widget only on this post.

Which version of the plugin are you running? Could send the actual URL to support@preseto.com?

cintacks commented 5 years ago

@kasparsd using 1.0.4

I can confirm it works except in this particular instance... perhaps due to the path starting with a number?

For example, it works on news but not on 2018news

kasparsd commented 5 years ago

@kettultim Could you please try the latest version 1.1.0 of the plugin? There have been a lot of changes to the plugin since version 1.0.4.

cintacks commented 5 years ago

Geez I'm so sorry.. I thought we were already on the latest. Hadn't checked Multisite. Works as intended on 1.1.0. One of those duh moments :(