Add custom JavaScript to <head> from a post
-
Hi
I’m new to WordPress and have been searching for a solution to this without any joy.
Basically I have about 100 pages, and in one particular page only I need to use some JQuery.
First therefore I need to link to the JQuery library, then to the custom JQuery plugin .JS file, and lastly to add some custom script to execute the JQuery functionality in the page.
Because the custom script only applies to that one single page, I’d like to keep it within the page if possible, and not have it as a seperate .JS file.
Is this possible to achieve please? I know I could create a new template file with all the links in there, but it seems longwinded and in future I might end up with dozens of template files for this purpose.
As I said I’m very new, so please keep your explanations simple!
Thanks 🙂
- The topic ‘Add custom JavaScript to <head> from a post’ is closed to new replies.