• 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

Script before close body…

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 › General Discussion › Script before close body…

This topic is: not resolved

Tagged: jquery, jquery in footer, script in footer

  • This topic has 5 replies, 3 voices, and was last updated 4 years, 3 months ago by binaraday.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 7, 2018 at 3:43 am #223579
    ninmorfeo
    Member

    I need to alterate superfish.js with another function...but when i try to put script in genesis panel section they say me:
    "This code will output immediately before the closing </body> tag in the document source."
    but...it s seems not true..
    the script is print before all other genesis script, not at last...
    is it some issue or i have to move with another way?

    https://drive.google.com/open?id=1RRRisO8vnzEIvLbQZPDSAIl4sVNGgYjW
    October 7, 2018 at 5:07 am #223582
    Victor Font
    Moderator

    Save the jQuery to a file, then enqueue the file in the standard WordPress way by using the wp_enqueue_script function in functions.php. You'll have to experiment with the priority to find a number that works for your site to add the script at the very bottom.

    https://developer.wordpress.org/reference/functions/wp_enqueue_script/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    October 7, 2018 at 5:45 am #223583
    ninmorfeo
    Member

    ok thanks or support 🙂

    October 7, 2018 at 7:03 am #223584
    binaraday
    Member

    Hello,
    I would like to load the Jquery scripts in footer instead of in the Header (as is).
    I've tried by putting some common wordpress scripts in the function.php of the theme, but they don't seem to work with Genesis Framework.

    How can I do that?

    My child theme is Brunch Pro 2.1.1

    Thanks!

    October 7, 2018 at 7:31 am #223585
    ninmorfeo
    Member

    Go in genesis panel...scrol down, you can see section of your interest

    October 10, 2018 at 1:49 pm #223648
    binaraday
    Member

    If I simply put a script in the genesis panel then I'll have the script twice in the source code.

    I would need before to remove the one in the header section 🙂

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

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