Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #407342

    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

    #407427

    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

    #407466
    This reply has been marked as private.
    #407577

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.