jQuery conflict in WordPress
-
I have a WordPress blog at https://www.vgreboot.com/ in which I followed the exact instructions for jPlayer’s Quick Start guide to install a jPlayer in my site’s header.php. All the code jPlayer needs is in the header.php:
When you include the line
“<script type=”text/javascript” src=”https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js”></script>”
the mp3 player works but all the jQuery things below the mp3 player break. When you DON’T include that line, everything works, but the mp3 player looks wrong, like in the bottom of Step 6 of the Quick Start guide. Now, I know WordPress has its own copy of jQuery, but while trying to fix the problem, I installed and activated a plugin that makes WordPress use Google’s jQuery. I can remove that temporarily. There appears to be multiple instances of jQuery, or so I have heard. Problem is, I’m no coder (outside of copy-paste and CSS) and I don’t know how to fix this.
I don’t want to change any files in “vgr-content/themes/thematic”, as that would be a temporary solution, not a permanent one. I do use a child theme of Thematic though, and I can change those. This is definitely a problem with jQuery and WordPress, not with jPlayer in itself.
- The topic ‘jQuery conflict in WordPress’ is closed to new replies.