• 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

update 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 › update jQuery

This topic is: not resolved

Tagged: jquery

  • This topic has 10 replies, 4 voices, and was last updated 7 years, 6 months ago by briz_dad.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • September 16, 2015 at 1:21 pm #165799
    briz_dad
    Member

    Hello Support,

    We've been running the Genesis Theme with a Child theme for a couple of years on this site:
    HFS

    We use a plugin called MapPress to load Google maps onto some pages, such as this one:
    hearthsidefoods.com/the-network/hearthside-facility-directory/elk-grove-il/

    I'm not exactly sure when the maps quit loading; within the last few weeks.

    I contacted the plugin developer and the jQuery library needs to be updated:

    Theme or plugin loads obsolete version of jQuery
    To find the jQuery version: in the browser’s javascript console type ‘jQuery.fn.jquery’. The minimum version is 1.7 (released 4 years ago). If your version is lower you’ll need to update your theme or plugin to load a current version.

    I attempted to use a simple plugin to update the jQuery library - jQuery Updater - but it isn't working. I have an educated guess that the Genesis theme is over-ridding the plugin.

    Can you direct me on how we may safely update the jquery library?

    Thank you,
    Greg

    http://www.hearthsidefoods.com/the-network/hearthside-facility-directory/elk-grove-il/
    September 16, 2015 at 8:31 pm #165820
    Brad Dalton
    Participant

    I would find a new plugin for maps that works.


    Tutorials for StudioPress Themes.

    September 17, 2015 at 11:27 am #165904
    briz_dad
    Member

    The plugin is working on another site not using the Genesis theme. It seems reasonable to update the jquery library to the latest version - yes?

    September 17, 2015 at 12:43 pm #165915
    Brad Dalton
    Participant

    It depends on how you're loading jQuery but i doubt the plugin contains the library as it's normally loaded externally.


    Tutorials for StudioPress Themes.

    September 17, 2015 at 1:00 pm #165917
    briz_dad
    Member

    i think it is the Genesis theme that is loading in the library - which is why i posted for help here... I want to know how to update the library via the Genesis theme.

    September 18, 2015 at 9:56 pm #166054
    Derek
    Member

    You should email support if you want to talk to a staff member. This forum is for volunteers and the staff not always answering questions on it.


    ~’;’~

    September 19, 2015 at 3:56 pm #166104
    briz_dad
    Member

    ok - thanks

    September 20, 2015 at 8:50 pm #166179
    Victor Font
    Moderator

    If Genesis is loading jQuery, you would see it in functions.php. It appears that you are using the Genesis Sample theme. That theme does not load jQuery. Besides, if it were being loaded by theme, it would be loading the version of jQuery delivered with WordPress, which is up to date. It wouldn't be loading an obsolete version.

    The jQuery library that is being loaded on your site might be getting loaded by the youtube embed plus plugin. The library is loaded in the middle of the you tube embed plus code.


    Regards,

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

    September 20, 2015 at 9:34 pm #166181
    briz_dad
    Member

    We're using a licences Genesis theme (Version: 2.2.2 ยท Released: September 9, 2015) with a Child Theme for some functions and CSS changes and additions.

    I turn off all the plugins and I get the following:

    jQuery.fn.jquery
    "1.4.4"

    September 21, 2015 at 5:38 am #166199
    Victor Font
    Moderator

    If you look at the code in genesis/libs/js/load_scripts.php, you can see that the framework does not load jQuery. I've looked at your source code again and I can see that jQuery is being loaded twice. You have this line:

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

    You're loading an old version of jQuery from Google. Genesis doesn't do this. You also have this in your source:

    <script type='text/javascript' src='http://www.hearthsidefoods.com/wp-includes/js/jquery/jquery.js?ver=1.11.3'></script>
    <script type='text/javascript' src='http://www.hearthsidefoods.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>

    This is what WordPress loads. The only way you can load two versions of jQuery at the same time is if one of them is being called directly and not being loaded the correct way with wp_enqueue_script. I suspect your Google script is at fault. Find out where it is loading and remove the line. There's no reason to load jQuery scripts from Google for analytics.


    Regards,

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

    September 21, 2015 at 11:00 pm #166294
    briz_dad
    Member

    Hello Victor,

    Thank you very much for your time and support. That directed me right to the issue - the call is hard coded into the header via the functions file.

    Unfortunately, the "accordion" slider on the homepage (and other inner pages) breaks when the jQuery library is up-to-date.

    I think I have a work-around... and I believe they are engaged in a new site launch soon - so I just need something to last until then.

    Thank you again for your help.

    Sincerely,
    Greg

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Design Tips and Tricks’ 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