WP Engine

Solutions
AgencyEnterpriseSmall & Medium BusinessMarketer
How WP Engine supports marketers.Benefits for marketers.Features that help you innovate.
Developer
How WP Engine supports developers.Benefits for developers.Features that help you move faster.
Explore Our Platform
Insights
Thought LeadershipTopics

Read articles, trends, and insights on these topics from leaders in marketing and technology.

Creative AgilityEnterprise PerformanceActionable IntelligenceEcosystem Integration
Resources

Access ebooks, whitepapers, webinars, and other knowledge from our ecosystem of digital experts.
Visit Resource Center.

Delivering a Slam Dunk Experience on WordPressEbook: The Ultimate Guide to WordPress Plugins15 Common WordPress Mistakes Agencies and their Clients Make
Case Studies
About
Our CompanyOur PlatformLatest News

Access the latest news from inside WP Engine.
Visit the Newsroom.

WP Engine Secures Strategic Growth Investment From Silver LakeWP Engine Unveils First WordPress Digital ExperienceWP Engine Expands Global Presence with New Office in Brisbane
Media Center

Get announcements and resources about WP Engine.

Press Releases
Careers at WP Engine
Pricing
Sales Questions?

Contact Sales

Discover why organizations of all types and sizes choose WP Engine — and how it can benefit you.

Chat

1

I'm available right now to answer any of your questions!

Reply

Call

+1-512-201-4819

Contact

Send a message

Compare Plans
Need Support?
Support DocumentationBilling HelpSupport

We offer support 24 hours a day, 7 days a week, 365 days a year. Log in to get expert one-on-one help.

Log in for support

Sales Questions

Contact Sales

Discover why organizations of all types and sizes choose WP Engine — and how it can benefit you.

Chat

1

I'm available right now to answer any of your questions!

Reply

Call

+1-512-201-4819

Contact

Send a message

Sign in
Sign in
Search

Search

Compare Plans
Call Sales +1-512-201-4819
Menu
AgencyEnterpriseSmall & Medium BusinessMarketers
How WP Engine supports marketers.Benefits for marketersFeatures that help you innovate.
Developers
How WP Engine supports developers.Benefits for developers.Features that help you move faster.
Our PlatformPricingResource CenterOur CompanySolution CenterThought LeadershipDocumentationCareers

How Jquery Versions can Break your WordPress

Austin Gunter 2.23.2012

WordPress developers should be familiar with jQuery, that cross-browser Javascript library that makes using Javascript much simpler for front-end HTML development.  It’s a useful tool, but we’ve recently solved some interesting problems that can happen when multiple jQuery versions are coded into WordPress, and a site gets confused about which version takes priority.

WordPress is designed to interact smoothly with jQuery, and new jQuery versions are often included in WordPress updates.  The proper way to call jQuery in WordPress is designed with these updates in mind, and ensures that a consistent version of jQuery gets used.

For a refresher on jQuery and WordPress, check out this digwp post on how to include jQuery the right way. It demonstrates how to make sure you don’t have conflicting jQuery libraries in your site, as well as the proper way to call jQuery in your WordPress. 

Recently, we resolved a client’s WordPress where the jQuery was installed into the header AND the footer.  The footer jQuery was a previous version hardcoded into a plugin.  This meant that two different versions of jQuery ended up being called, and the site was producing slightly broken HTML.  The client filed a support ticket for us to see if we couldn’t figure out the problem.

This sort of issue can be challenging to diagnose because the problem may not point you to a jQuery code error.  Can you say, “aggravating?”

Below are screenshots of how the errors were presenting.

The JavaScript Code in the Footer was throwing the WordPress Design Off

The before screenshot


 

 

 

 

 

 

 

The Design of the Site after we resolved the javascript in the footer

The after screenshot

 

 

 

 

 

 

 

 

 

 

The challenge with solving a problem like this is that the error didn’t present itself as a javascript problem, so we got creative in order to isolate the problem, reproduce it, and then fix it.  It turns out that the site was running a plugin with an old version of jQuery hardcoded in.  The issue was revealing itself in the “before screenshot” because WordPress was confused about which jQuery version to use: the header version or the footer version.

We’ll go into how to solve this problem in a post next week.

More WordPress news from WP Engine

How To: Prepare WordPress for an Onslaught of TrafficWordPress Consultant Profile: Rachel Baker

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Subscribe

    Subscribe to our blog to get great tips for your WordPress site.

  • Favorite Tweets by @wpengine
  • Sign In

    Solutions

    • Agency
    • Enterprise
    • SMB
    • Marketer
    • Developer

    Insights

    • Blog
    • Torque
    • Velocitize

    About

    • Our Company
    • Leadership Team
    • Our Platform
    • Careers
    • Affiliates
    • Contact
    • Legal
    • Newsroom
    • Privacy Policy

    Resources

    • Resource Center
    • Documentation
    • Solution Center
    • Find an Agency

    WP Engine

    504 Lavaca Street, Suite 1000
    Austin, TX 78701

    Sales

    +1-512-201-4819
    [email protected]
    7am–7pm CST

    Billing

    [email protected]

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Instagram
    • RSS
    © 2013—2026 WPEngine, Inc. All rights reserved.
    WP ENGINE®, VELOCITIZE®, TORQUE®, EVERCACHE®, and the cog logo service marks are owned by WPEngine, Inc.