Matching pages to limit widget visibility
When creating a widget, Flook will automatically restrict visibility to the page on which the widget was created
You are able to show or hide on combinations of URLs to suit your specific needs. This is achieved by defining URLs on which the widget should appear or be hidden. Wildcards can also be used.
Examples
The following are some examples of how URL patterns can be used in either the Show or Hide fields
Pattern | Match |
/our-*.html |
Will match any page on the root of the site, starting with "our-" and end with ".html". For example: https://www.mysite.com/our-services.html https://www.mysite.com/our-products.html |
*contact* |
Will match any page or route on the site containing "contact". For example: https://www.mysite.com/contact-us.html https://www.mysite.com/contact/index.html https://www.mysite.com/help/contact https://www.mysite.com/page=contact |
*/index.html |
Will match any page called "index.html" on any part of the site. For example: https://www.mysite.com/products/index.html https://www.mysite.com/contact/index.html |
URL patterns are case insensitive.
Precedence
URLs defined on which the widget should be hidden take precedence. If the following combination was used, the widget would NOT appear on /our-products.html