• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

jQuery

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › jQuery

This topic is: resolved

Tagged: jQuery for Genesis child

  • This topic has 2 replies, 2 voices, and was last updated 8 years ago by Andras.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 30, 2018 at 6:33 am #224065
    Andras
    Participant

    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

    October 30, 2018 at 7:29 am #224066
    Victor Font
    Moderator

    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?

    October 31, 2018 at 6:47 am #224093
    Andras
    Participant

    Just what I needed to find my way. Thank you!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘jQuery’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble