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

    I have some javascript to add to each page, Instructions are to add code before the </body> tag of each page.

    I dont see a place in WP admin to add., Just google analytics.

    Where do i add this code ive been given?

    #598470

    Hi j_arendall!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_js_to_pages(){
    ?>
    <script>
    // YOUR CODE GOES HERE 
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_js_to_pages');

    Cheers!
    Yigit

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