Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1393342
    carlmansson92
    Participant

    Hello!

    I was told to put following script immidately after the opening of body tag.

    <script type=”text/javascript”>window.onload = new function(){var hd = document.getElementsByTagName(‘head’).item(0);var js = document.createElement(‘script’); js.setAttribute(‘language’, ‘javascript’); js.setAttribute(‘src’, ‘http://certify.gpwa.org/script/mrbonus.se/&#8217;); hd.appendChild(js); return false;}</script>

    I rather wanna but scripts as far down as possible. Its for a footer certification. Will put following code in a footer widget:

    Where should I put the script?

    Br

    #1393563
    Jade
    Moderator

    Hi Br,

    Please install the child theme and add this code in the functions.php file:

    function my_custom_footer_output() {
    ?>
     
        <!-- Add the Javascript code here -->   
    
    <?php
      
    } 
    
    add_action( 'x_before_site_end', 'my_custom_footer_output');

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1393342 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>