Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1409273

    Hello,

    I need to add a third party javascript to the header.
    The third party documentation tells me to add this code to the header: <script type=”text/javascript” src=”//??????.nl/api/??????API.js”></script> (i’ve put in the ? for obvious reasons ;-) )

    I’ve tried to add the code to to the end of functions.php from Envold child but that is not working. If I put the code at the beginning the code is not placed into the dead section.
    Can you tell me what is is best way to approach this?

    #1409313

    Hey Ernie4President,

    Please try this in your child theme functions.php file:

    function ernie_prez_header_script(){
    ?>
    YOUR SCRIPT GOES HERE
    <?php
    }
    add_action('wp_head', 'ernie_prez_header_script');

    Best regards,
    Rikard

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