Display the button on selected pages

Estimated time to complete: 10 minutes
Requirements: An account on callnowbutton.com

When you create a button you see an active toggle next to "Show on all pages". Switching this toggle unveils the page selector to set on which page the button should and should not appear.

By default the toggle is set to show the button on all pages.
By default the toggle is set to show the button on all pages.

Before jumping into the options it's good to understand the different elements of a web address. Knowing the names of the part that make the URL will make the rest of this article much clearer.

The names of the different parts of a url.
The different parts of a url.

There are a couple of ways to select the pages that you want the button to be displayed on. Let's first look at the elements of the settings panel.

The page selector panel

The page selector panel consists of two parts:

Show button when [...]
Here you add the include rules (the pages that you want the button to be displayed on)
Hide button when [...]
Here you add the exclude rules (the pages that you want the button to be hidden on)

Under each of these parts you have four page selector methods:

  1. Page URL is
  2. Page URL contains
  3. Page path starts with
  4. Page URL matches RegEx

Let's dig into each of the selector methods.

The page selector panel of the Call Now Button web app.
The page selector panel.

Page URL is

This is an exact match of the URL so this will apply to one single page.

This method looks at the entire URL including parameters.

See some examples

Page URL contains

This method looks to match your input with any part of the URL including the domain, subdomain and parameters. This can be super useful if you want to show or hide the button on all pages that are in a specific folder.

See some examples

Page path starts with

The path is everything after the domain so this method allows you to select all pages that start in a similar way.

See some examples

Page URL matches RegEx

This is the most advanced (and complicated) method for matching and can be used when none of the other options work for your situation.

This method considers the entire URL including subdomain, parameters and anchors.