Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #998887

    Hi!

    Where do add code when the instructions is like this:

    To install PageTools on your affiliate site simply insert the following code to your website (paste the snippet just before the closure of the HTML body, so before </body>):

    Thanks!
    Charlotte

    http://www.airlinestaffrates.com/

    <!– Begin TradeTracker SuperTag Code –>
    <script type=”text/javascript”>

    var _TradeTrackerTagOptions = {
    t: ‘a’,
    s: ‘312709’,
    chk: ‘9ecc3b06eeefd76a3731e1621a2d3556’,
    overrideOptions: {}
    };

    (function() {var tt = document.createElement(‘script’), s = document.getElementsByTagName(‘script’)[0]; tt.setAttribute(‘type’, ‘text/javascript’); tt.setAttribute(‘src’, (document.location.protocol == ‘https:’ ? ‘https’ : ‘http’) + ‘://tm.tradetracker.net/tag?t=’ + _TradeTrackerTagOptions.t + ‘&s=’ + _TradeTrackerTagOptions.s + ‘&chk=’ + _TradeTrackerTagOptions.chk); s.parentNode.insertBefore(tt, s);})();
    </script>
    <!– End TradeTracker SuperTag Code –>

    #998923

    Hey Charlotte,

    Add this code to your child theme functions.php:

    
    
    function avia_custom_footer_javascript() {
        ?>
    <!– Begin TradeTracker SuperTag Code –>
        <?php
    }
    add_action('wp_footer', 'avia_custom_footer_javascript');
    

    and replace:

    
    <!– Begin TradeTracker SuperTag Code –>
    

    with your TradeTracker code.

    Best regards,
    Dude

    #999057

    Great, thanks.

    Can add the code again for this as well?

    Add this Leezair Widget script inside the <head> … </head> tag.

    <script src=”https://widgets.leezair.com/build/app.js”></script&gt;

    Best regards
    Charlotte

    #999065

    Hi Charlotte,

    Here is the code you can put in your funtions.php to put the code above to the head tag

    
    
    function avia_custom_header_javascript() {
        ?>
    <!– Begin TradeTracker SuperTag Code –>
        <?php
    }
    add_action('wp_head', 'avia_custom_header_javascript');
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1000898

    Thanks :)

    #1000927

    Hi,

    I’m glad you were able to get this resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add code before body tag’ is closed to new replies.