Can someone show me the basics of how and where to load and use jquery in a page.
It will be used in 4 pages - not every page. Please let me know which files to edit.
I'm looking to create a show / hide button for some text content.
Perhaps something like this: http://www.w3schools.com/jquery/jquery_hide_show.asp
I'm open to any suggestions.
You can put the script itself anywhere in your child theme (often /yourtheme/lib/js/myscript.js). This codex page talks about how to set it up in your functions.php file. And this awesome page should help you sort out the conditional statements to load it on just the pages you want.
Good luck! HTH
I do the best I can with what I’ve got. (say hey on twitter)
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!