Where to insert Javascript code into HTML body tags
-
I feel like this should be common knowledge, but I’ve hit a roadblock. I have one line of JS code that I’m using for geo-targeting images based on location. It works correctly when I place it in the header or footer of my theme (I am using a child theme so I activate the parent theme, place it, and then activate my child theme again), but I can’t for the life of my figure out where to access the basic HTML file for my website. This JS script can only be placed in between the opening and closing body tags, nowhere else. Is there a way to access the HTML file of my website without having to download it via FTP and save it locally? There are a lot of permissions issues with doing that at my company and I’d rather do it within www.remarpro.com if possible.
Also, putting this line of code in the “text” editor of one of my pages does not work, in case anyone was going to suggest that.
Thanks in advance!
- The topic ‘Where to insert Javascript code into HTML body tags’ is closed to new replies.