Dear Kriesi.at team,
How can I included the following script before the closing <head> tag on my website.
<script type=’text/javascript’ src=’//ignite.practiceignition.com/ignite.js’></script>
Please kindly see the following article relating to my problem.
https://help.practiceignition.com/hc/en-us/articles/200944738
Thank you for your help and support.
Kind regards,
Patrick
Hey!
Try adding this at the very end of your theme / child theme functions.php file:
function include_ignite_script() {
?>
<script type='text/javascript' src='//ignite.practiceignition.com/ignite.js'></script>
<?php
}
add_filter('wp_footer', 'include_ignite_script');
Cheers!
Josue
Although it’s working fine on my end, i just realized you wanted the script in the <head>, change the code to:
function include_ignite_script() {
?>
<script type='text/javascript' src='//ignite.practiceignition.com/ignite.js'></script>
<?php
}
add_filter('wp_head', 'include_ignite_script');
Best regards,
Josue