Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

jQuery with Elements

  • Is there a way to execute jQuery scripts using GP Elements?

    Thanks!
    -Rick

  • You can add script to GP’s hook element, and set the hook name to wp_footer.

  • Thanks Ying, I appreciate your prompt reply. Using your suggestion, the jQuery script works fine, as long as I am logged into WordPress, but it fails when I’m logged out. The page source included below:

    -Rick

  • What is the script you are using? I can help check if it’s being inserted into the site.

    You can check if user rules are defined in the hook at the mean time, if so, remove it.

    Let me know 🙂

  • The script is noted below. No users are assigned in the wp_footer hook.

  • I can see it in the HTML, it is correctly installed.
    https://app.screencast.com/rhCXMjr9WuHbb

    If it doesn’t work on the front end, but works on backend, there might be a jQuery conflict with other plugins.

    Can you try to disable all plugins to test?

    Let me know 🙂

  • I have very few plugins. I have disabled all but Elementor and GP Premium. Same result. Maybe I should look for a plugin, such as Simple Custom CSS and JS, that claim to run jQuery.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.