Chatbox
Widget Display Rules
💬Get free consultation

Widget Display Rules

What are Widget Display Rules?

Widget Display Rules enable you to manage which store pages display or conceal the Chatty chat widget. You can employ simple wildcards or comprehensive regular expressions to match multiple pages simultaneously without enumerating each URL individually.

This proves beneficial when you need to:

  • Hide the widget on all policy or legal pages (e.g. /pages/terms, /pages/privacy)
  • Show the widget only on product and collection pages
  • Target a group of URLs that share a common pattern

Where to find it

Navigate to SettingsGeneral SettingsAdvancedWidget Display.

How it works

Widget Display provides two controls:

  • Show on specific pages — the widget only appears on pages that match
  • Hide on specific pages — the widget appears everywhere except pages that match

Each control includes a Custom URL Regex option for entering your own URL patterns.

Writing patterns

Enter one pattern per line using:

Pattern typeExampleWhat it matches
Wildcard/pages/*All URLs that start with /pages/
Full regex/^\/pages(\/.*)?$//pages and any sub-path under /pages/
Exact path/contactOnly the /contact page

Limits:

  • Maximum 50 patterns
  • Maximum 200 characters per pattern

Inline validation

Incorrect pattern formats trigger error messages below the input field. Patterns must be corrected before saving — settings won't save with invalid patterns present.

Examples

Hide widget on all /pages/ URLs:

/pages/*

Hide widget on terms, privacy, and refund pages only:

/pages/terms
/pages/privacy-policy
/pages/refund-policy

Show widget only on product pages (regex):

/^\/products(\/.*)?$/

Wildcards use * to match any characters. Full regex patterns must start and end with / and follow standard JavaScript regex syntax.