Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #802468

    Hi
    I want to install a trial version of the plugin Hotjar on my site. I work with a child theme. In the editor i do no see the possibility to edit the header of the child theme, only the parent theme. How can I copy the following snippet into the header of my child theme? It is supposed to go right before the tag </head>.

    #802716

    Hey metafora29,

    Here is the code you can put in your funtions.php

    
    function add_HJCode(){
    ?>
    <script>
     
     you code goes here
     
    </script>
    <?php
    }
    add_action('wp_head', 'add_HJCode');
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #802769

    Thanks Victoria, it worked!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘install code in the header of my child theme’ is closed to new replies.