• 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

gillespieza

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 14, 2022 at 6:16 am in reply to: I cannot get wp_enqueue_scripts to load a JS file #505031
    gillespieza
    Participant

    For reference, if anyone else is having the same problem, it was clearly a PEBKAU error.

    I was registering the script correctly with wp_register_script but had not enqueued it with wp_enqueue_script, before hooking into the wp_enqueue_scripts action.

    April 14, 2022 at 6:05 am in reply to: I cannot get wp_enqueue_scripts to load a JS file #505030
    gillespieza
    Participant

    Yeah, that's exactly what I followed. My code is in my functions file.

    Oh god, I see it now. Doh!

    April 14, 2022 at 5:41 am in reply to: I cannot get wp_enqueue_scripts to load a JS file #505027
    gillespieza
    Participant

    OMG, it worked! What??? Why though? I have always registered my scripts first, and then enqueued. I know you can do it all in one step, but anyhoo. Why does the registering and then enqueuing not work? I checked in my debug log, and wp_register_script is definitely returning true, so ... I don't understand what's happening anymore 🙁

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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