So I have customized a theme and added a few plugins and the Nivo slider does not seem to be working right, - it does not arrow advance or add amimation to the slides. I switches the images, in a slow, strange way - but that is it. When I disable the WP NextGEN Gallery and or the Quotes collection ( http://srinig.com/wordpress/plugins/quotes-collection/) - the slider works fine, but the plugins do not obviously.
I know you should use wp_enqueue_script('jquery'); - which the quotes plugin uses, but so does the theme, I need the answer on how to get this to work right and for the future as well - I have run into jQuery libraries conflicting and screwing things up.
I can give you access to the admin, just need this fixed!
I guess the url would help -http://www.allamericanpaintingplus.com/
Jonah Schulte answers:
I notice that the jquery library is being included twice on your site. If you view the source you'll see what I mean.
<script type="text/javascript" src="http://www.allamericanpaintingplus.com/wp-content/themes/xero/includes/js/jquery.min.js"></script>
<script type='text/javascript' src='http://www.allamericanpaintingplus.com/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
I believe the second one is coming from the NextGEN Gallery plugin. If I recall correctly, in the settings for NextGEN in the WP admin there is an option for "don't include the jquery library". Try activating that option to see if it makes a difference...
Jonah Schulte comments:
I also see this error which may be causing a problem:
Error: invalid assignment left-hand side
Source File: http://www.allamericanpaintingplus.com/wp-content/themes/xero/includes/js/xero.js
Line: 147, Column: 30
Source Code:
oDoc.body.style.font-family = "�Lucida Sans�, �Lucida Grande�, �Lucida Sans Unicode�, Arial, sans-serif; !important";
That is just a few lines from the bottom of the xero.js file. I recommend replacing the line in question with this:
oDoc.body.style.font-family = "Lucida Sans, Lucida Grande, Lucida Sans Unicode, Arial, sans-serif; !important";
Jonah Schulte comments:
If you would like to send me a private message with the FTP & admin login i can work on fixing this for you.
Jonah Schulte comments:
@Jarret Minkler: What would you use instead of jQuery? Prototype? Mootools? No thanks...
Andrzej answers:
Hi, I can fix it now. Please send me FTP details and wp-admin login by a private message.
Victor Teixeira answers:
You are loading jquery twice.
The theme is registering jquery again. http://www.allamericanpaintingplus.com/wp-content/themes/xero/includes/js/jquery.min.js
You don't need this.
Also take a look in all those jquery plugins included, you really need these?
Oleg Butuzov answers:
http://www.allamericanpaintingplus.com/wp-content/themes/xero/includes/js/jquery.min.js
make this file empty