Only show the button on specific pages
Estimated time to complete: 3 minutes
Requirements: The Call Now Button WordPress plugin
You can set the Call Now Button to display only on specific posts or pages (e.g. the homepage). You can use the Limit appearance feature located under the Presentation Settings tab. (If you’re using version 0.3.6 or earlier you can find this option in the Advanced Settings section of the button settings.)
Using the post or page ID
To hide (or show) the button on a particular page you must enter the ID of the post (or page) in the field. The are a couple of ways of finding the IDs:
In edit mode: When you edit a page or post, you can see the ID in the URL of your browser. The end of the URL looks something like this:
In this example it tells you that the ID of the post/page you’re editing is 18.
- With a plugin: Another way is to install a plugin that reveals the IDs in your overview pages in WordPress. An example of such a plugin is Reveal IDs. After activation you can go to Pages inside your WordPress dashboard and you’ll see something like this (see the last column all the way on the right side):
Once you know the IDs you can add them to the Limit appearance field, separating these IDs with commas.
Including or excluding posts and/or pages
As you might have noticed, there’s an option to limit the button to only show on the post or pages you enter here. But you can also switch to excluding the entered posts or pages.
Hide button on front page
In WordPress you can set a page as your front page but also display your latest posts. In the first case the front page will have an ID but in the second case it doesn’t. For that reason there’s now a separate option to hide the Call Now Button on your front page.
When you have a page set as the front page, it is still required to tick the Hide on front page checkbox. Excluding the page ID will not work for pages set as the front page.
Did this answer your question?