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>.
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
Thanks Victoria, it worked!