Site logo

Archived topic

Executing a hook on a specific page, is this possible?

1 reply · Started by Dave on November 8, 2017

Viewing posts 1–2 of 2

I have a script that works well in the wp_footer hook section. This is the script from Calendly:

<!-- Calendly badge widget begin -->
<link href="https://assets.calendly.com/assets/external/widget.css" rel="stylesheet">
<script src="https://assets.calendly.com/assets/external/widget.js" type="text/javascript"></script>
<script type="text/javascript">Calendly.initBadgeWidget({url: 'https://calendly.com/dave-ellison/15-min', text: 'Schedule call with me!', color: '#00a2ff', branding: false});</script>
<!-- Calendly badge widget end -->

Is it possible to execute this hook only on a specific page or pages? I'm not a coder and I can use an iframe embed code if needed, but this would work better. As it stands now, it shows the button on every page of the site. (I have disabled this hook since this is a live site, so it does not show up).

Any suggestions are appreciated.

Thanks,

Dave ~

This archived topic is closed to new replies.