• Hello. I am seeking some javascript help. This issue has been with me for weeks now and is very frustrating. I have several pages and several JS codes I am trying to use. Each page will have its own JS code. I am trying to put the JS code in a .js file and upload it to my server, then use a code to call out that file on my server where I want it on the page i want it on. Then, the same for the next page/code(file) that I have. I am still in the process of learning html and am completely lost with this. I’m assuming the code will be fairly simple and short for someone with javascript knowledge, and hoping I can just change the file name of the code for each page. Thanks in advance to everyone who helps with this!

    PS – I’ve tried simply adding the code into the html editor part of the wordpress page, but it seems wordpress doesn’t allow that. I end up with a broken image link.

Viewing 1 replies (of 1 total)
  • Firstoff, if you are not already using a child theme, then start now and create a child theme http://codex.wordpress.org/Child_Themes

    The easiest solution is to create a custom page template for each of your different pieces of javascript, the javascript could even go inline.
    Assign the correct page template to each page and you are done.
    These page template go into your child theme directory, copy and rename the page.php from the parent theme.

Viewing 1 replies (of 1 total)

The topic ‘Need help with javascript’ is closed to new replies.