double jquery, complete mess
I’ve unfortunately inherited a really poorly written theme on a site I’m going to maintain.
In the header, it’s already calling jquery…
As soon as I install any plugin with jquery (nextgen gallery for example) that gets added to the header, everything starts to break.
I know it’s because it’s loading jquery twice, but here’s the kicker, removing the original call from the header.php breaks everything. Homepage slider, dropdown menus, the whole shebang. I think whoever wrote this put in a bunch of dependencies to it all over the place.
If I use the function in NGG to stop the scripts from loading…
…then the menus/sliders work again, but it kills off Nextgen’s galleries and lightboxes.
I’m completely confused as to where to start fixing this.
In a perfect world, if I could get either the theme to stop loading jquery OR nextgen to only load jquery when it’s used (or, just NOT on the homepage) then I’d be all set. I can’t seem to accomplish either.
Anyone have any idea what I’m talking about? I’ve been staring at this for way too long and I think I’m just confusing myself more and more. HELP!
- The topic ‘double jquery, complete mess’ is closed to new replies.