Solved

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

Posted on 2014-02-09
3
358 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
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
This article discusses how to create an extensible mechanism for linked drop downs.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now