Going crazy over here.
Button leads to a leadpages leadbox pop up. Plugged the java into my child theme’s functions.php (see below) but upon changing the url of the leadbox, it no longer works. It’s simply loading the leadbox not as a popup (java’s not working) but as it’s own page.
Site: www.fitteacheracademy.com
Code from child theme functions.php:
function third_party_code() { ?>
<script src="//static.leadpages.net/leadboxes/current/embed.js" async defer></script>
<script src="//code.tidio.co/88133yc230x6kvgvdwbs2nns296htppx.js"></script>
<?php
}
add_action( 'wp_head', 'third_party_code' );
Any ideas where I’m going wrong all of a sudden? Thanks!