Using Jquery in a page

Community Forums Forums Design Tips and Tricks Using Jquery in a page

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Robin 2 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #58230


    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:
    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)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.