Forums

Adding JavaScript to my blog (6 posts)

  1. Shawshank
    Member
    Posted 1 year ago #

    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

  2. jessn
    Member
    Posted 1 year ago #

    You can most likely put it in your footer.php

  3. Shawshank
    Member
    Posted 1 year ago #

    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

  4. jessn
    Member
    Posted 1 year ago #

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

  5. jessn
    Member
    Posted 1 year ago #

    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

  6. Shawshank
    Member
    Posted 1 year ago #

    Cool, that did the trick.

    Thanks!

    Shawshank

Topic Closed

This topic has been closed to new replies.

About this Topic