Tagged: , ,

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

    Hi,

    I need to insert a script right after the body tag is inserted.
    So basically between this:

    <body>
    //Insert some script
    <div id="wrap_all">

    I have found a lot of hooks which place it near the place I want but not the exact place.
    Is there a hook for it?

    The nearest I get now is with this hook:

    function add_marketing() {
        ?>
      <script>
          <!-- Google Tag Manager Marketing -->
    		alert("Marketing");
        </script>
        <?php
    }
    add_action('ava_main_header', 'add_marketing', 10, 0);
    #1063983

    Hey (Email address hidden if logged out) ,

    Yes, you can use this hook:

    ava_after_body_opening_tag

    Hope it helps.

    Best regards,
    Nikko

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