• shawshank

    (@shawshank)


    I’d like to add a bit of javascript to my blog so I can track traffic. What file do I need to edit in order to add this JS?

    Thanks!

    Shawshank

Viewing 5 replies - 1 through 5 (of 5 total)
  • Jess

    (@jessn)

    You can most likely put it in your footer.php

    Thread Starter shawshank

    (@shawshank)

    I found a file called admin-footer.php….is that the one you are referring to? I added the JS, refreshed my blog and looked at the source but it did not show up. In fact, looking at the blog footer and the text within admin-footer.php and they don’t match. Am I missing something?

    Shawshank

    Jess

    (@jessn)

    Where are you looking for the file? You should be looking inside the folder with all the files for your theme.

    Jess

    (@jessn)

    Yeah looks like you were in the wp-admin folder. Go up a level and go into wp-content, then “themes” then into the folder of the theme you’re running. Look for footer.php

    Thread Starter shawshank

    (@shawshank)

    Cool, that did the trick.

    Thanks!

    Shawshank

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding JavaScript to my blog’ is closed to new replies.