Solved

How do I resolve a jquery conflict on my self-hosted WordPress site?

Posted on 2014-02-09
3
404 Views
Last Modified: 2014-02-13
I maintain a site at www.ezrahenderson.com. I have identified a jquery conflict on the EPK page (www.ezrahenderson.com/epk).

If you go directly to that page, it loads just fine.But if you first go to the home page, then click on "Bio" to get to the EPK, the conflict manifests like this:

1. the page is supposed to open in a new tab/window -- this doesn't happen
2. the Wunderslider gallery does not load properly

I used a plugin called "Restore jQuery" to force only the WordPress version of jquery to load, but this breaks the dropdown menu on mobile so isn't a viable solution. I've deactivated this plugin.

If I can't resolve the conflict I'll need to either find a new responsive theme, that properly uses the WordPress version of jquery, or find a new image gallery. I don't have a problem making changes to the theme files but don't know where to start or how to do it in a way that won't break other components.

Thanks for any help!
0
Comment
Question by:nchristianh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 250 total points
ID: 39846169
There is a lot going on in that site.

The reason the _blank is not working is because the link click is being intercepted and an ajax request is made for the link, and then the page is updated with the new content.  In essence you are not leaving the page.

I cannot see any jquery conflict directly but this is probably because you are loading basically the whole page into itself.
It's too messy to track anything down.

You also have some secure to non-secure communication going on giving a security warning.
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 250 total points
ID: 39846179
Whenever you have a theme or plugin that loads its own JQuery, dump it and look for something better.  Hard coding a JQuery call is very sloppy and is usually the tip of the iceberg of problems.
0
 

Author Comment

by:nchristianh
ID: 39857033
Thank for the suggestions. I needed some more eyeballs on it to help me decide if a new theme was the best approach or if I could get away with making some theme mods. Sounds like a new theme is the right direction.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question