Call Now Button Not Appearing After Update – No Apparent Plugin Conflict

[ad_1]

Hi Gabrielle,

Thanks for your message. I took a look at your website and noticed that you have a block of JavaScript to register a conversion event when the call button in the top navbar of the website is clicked. This block of JavaScript is missing a closing script tag. As a result, the following HTML code (which is our button) is processed as if it were javascript as well. This obviously fails.

Here’s the block of javascript with the missing tag at the end:

<script type="text/javascript">
  window.addEventListener('load', function(){
    jQuery('#callbtn').click(function(){
      gtag('event', 'conversion', {'send_to': 'AW-0000000/XXXXXXXXXXXXXX'});
    })
  })

Simply add a closing script tag and the button should work just fine.

</script>

Best wishes,
Jerry

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer