Skip to navigation Skip to main content

How to Hide a Contact Button on Specific Pages (Rules That Work)

mloun contact button business hours

A contact bar on every page is better than a contact bar on none — but it is not the best configuration. A checkout page, a privacy policy, a thank-you page and a support article all have different jobs, and a floating button can get in the way of each.

Here is how the rules work, with configurations that hold up in practice.

Two directions, and the difference matters

ModeMeaningGood for
Allow listShow the bar only on the pages listedSmall sites, or a bar used for one purpose (cart, product pages)
Deny listShow everywhere except the pages listedContent sites where the bar belongs almost everywhere

Choosing the wrong direction produces the classic bug: a site with an allow list of one page, and the owner wondering why the bar disappeared site-wide.

The dimensions you can match on

  • Page type — front page, blog, single post, page, archive, search, 404, plus WooCommerce product, product category, cart, checkout and account
  • Specific IDs — a post, a page or a product by ID
  • URL patterns — with * and ? wildcards
  • Login state — logged in or guest
  • Device — desktop or mobile

Combine with AND or OR

AND means every configured condition must match; OR means any one is enough. Both are useful:

  • AND — cart page and logged-in customer: the wholesale enquiry button only for account holders.
  • OR — pricing page or a specific product: two unrelated places where the same question comes up.

If a site needs a rule that is already an OR of two ANDs, split it into two rules rather than fighting the logic.

Five configurations that work

  1. Checkout only — a bar for shipping and payment questions, nothing else.
  2. Products of one category — high-value items get a quotation button, accessories do not.
  3. Guests only — returning customers already have your number.
  4. Everything except legal pages — the deny list is short and stable.
  5. Nothing on the blog — readers are not buyers, and a floating bar interrupts long-form content.

How to confirm a rule before publishing

The panel shows a live line telling you whether the current page matches — for example “page type ✗ · visitor ✓”. Use it as you change settings; it saves a round of publish-and-check.

FAQ

Do rules apply to logged-in administrators?

While you are logged in, your own state counts. Test in a private window as a guest.

What happens with no rules enabled?

Nothing is blocked — the bar shows according to the channel settings only.

Can I hide the bar on a single post?

Yes. Add the post ID to a deny rule, or use a URL pattern for the slug.

Where this fits

Display rules are a PRO feature. See the full list.

READY WHEN YOU ARE

Get Your Free Proposal in 24 Hours

Tell us your product and target market — in English, 普通话, or 粤语. Within 24 hours you'll get a concrete plan: scope, timeline, and a fixed price.

Free strategy call · Fixed quote · No obligation

Contact Form