• Resolved kerdezo

    (@kerdezo)


    Hi friends,
    In the header php.(child theme) there is this snippet

    </head>
    
    <body <?php body_class(); ?>>
    
    <div id="wrapper">

    Where do I have to exactly insert a code(JavaScript SDK) which is to get include just after the opening <body>tag?

    thx

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    You need to read documentation of your code and use the correct way to add your code.

    If it’s a google analytic code, it should be within HTML head tag.
    if it’s a javascript file link, it should be within HTML head tag and loaded using wp_enqueue_scripts function
    If it’s a code to produce content, you should re-write it as a shortcode.

    Thank you

    Thread Starter kerdezo

    (@kerdezo)

    Thanks Denzel!

    You are welcome. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Code right after the opening tag.’ is closed to new replies.