Display Rules Pro
Display Rules give you precise control over where the WhatsApp button appears. Show it only on pages that matter, or hide it on pages where it doesn't belong.
How it works
By default, with no rules configured, the button appears on every page of your site. Display Rules let you override this with two types of rules:
- Include rules — the button shows only on pages matching at least one include rule. All other pages are hidden.
- Exclude rules — the button is hidden on pages matching at least one exclude rule. All other pages still show it.
Exclude rules take priority over include rules. If a page matches both, the button is hidden.
Rule types
| Rule type | Description |
|---|---|
| Specific page or post | Select exact pages or posts from a searchable dropdown. The rule matches only that specific piece of content. Useful for targeting a contact page or a key landing page. |
| Post type | Matches all content of a given post type — all Pages, all Posts, all Products, or any custom post type registered by other plugins. Useful for "show on all products" or "hide on all blog posts." |
| URL pattern | Matches pages whose URL contains a specific string or pattern. Use * as a wildcard. Examples: /shop/* matches all URLs under /shop/, *checkout* matches any URL containing "checkout". |
Adding rules
- Go to Settings > WaFloat Pro ⚡ and scroll to the Display Rules section.
- Choose whether to add an Include or Exclude rule using the type selector.
- Select the rule type (specific page, post type, or URL pattern) and fill in the value.
- Click + Add Rule to add more rules. Rules of the same type are combined with OR logic — any match triggers the rule.
- Click Save Pro Settings.
Common examples
Show button only on WooCommerce product and cart pages
Add include rules:
- Post type: Products
- URL pattern:
*cart* - URL pattern:
*checkout*
Hide button on the blog
Add an exclude rule:
- Post type: Posts
Show only on a specific landing page
Add an include rule:
- Specific page: select your landing page from the dropdown
No rules = show everywhere. If you have no include or exclude rules saved, the button appears on every page. You only need rules if you want to restrict or target its visibility.