This topic is: resolved
- This topic has 2 replies, 2 voices, and was last updated 8 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘jQuery’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Community Forums › Forums › Archived Forums › Design Tips and Tricks › jQuery
Tagged: jQuery for Genesis child
Hi,
I am working on including my first jQuery in my site.
I have looked at many tutorials, but am still confused.
Any suggestions where to find a proper step by step description with code to use for a Genesis child theme?
The query may do as little as print something or hide something, it does not matter. I would just like to get one with syntax that is working 🙂
This far it is clear that I have to
1) create a new .js file in the js folder
2) include an enqueue code in functions.php
Somehow I could not get it right sofar 🙂
Cheers,
Andras
What have you tried so far?
jQuery does not necessarily have to be enqueued as a separate file. It may also be included directly on a page depending on the scope of the code. It the code is meant to work globally across the entire site, a separate enqueued file is appropriate. If it is meant to work on a single page or post, then adding it to that page or post is approriate.
Almost every Genesis child theme enqueues some sort of jQuery file in functions.php. Use what's already there as an example for your development effort.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?
Just what I needed to find my way. Thank you!
© 2026 WPEngine, Inc.