Community Forums › Forums › Archived Forums › Design Tips and Tricks › update jQuery
Tagged: jquery
- This topic has 10 replies, 4 voices, and was last updated 7 years, 6 months ago by
briz_dad.
-
AuthorPosts
-
September 16, 2015 at 1:21 pm #165799
briz_dad
MemberHello Support,
We've been running the Genesis Theme with a Child theme for a couple of years on this site:
HFSWe 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,
http://www.hearthsidefoods.com/the-network/hearthside-facility-directory/elk-grove-il/
GregSeptember 16, 2015 at 8:31 pm #165820Brad Dalton
ParticipantSeptember 17, 2015 at 11:27 am #165904briz_dad
MemberThe 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 #165915Brad Dalton
ParticipantIt depends on how you're loading jQuery but i doubt the plugin contains the library as it's normally loaded externally.
September 17, 2015 at 1:00 pm #165917briz_dad
Memberi 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 #166054Derek
MemberYou 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 #166104briz_dad
Memberok - thanks
September 20, 2015 at 8:50 pm #166179Victor Font
ModeratorIf 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 #166181briz_dad
MemberWe'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 #166199Victor Font
ModeratorIf 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 #166294briz_dad
MemberHello 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 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.