- This topic has 4 replies, 2 voices, and was last updated 12 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Jquery mouse event not working when wp eStore is activated
Tagged: JavaScript conflict, jquery conflict
After activating eStore, the mouse events (hide and leave) did not work. The mouse events worked again after de-activate the E-Store.
That means there are some JavaScript conflicts/errors on your site. Please post a link to your web page in question so I can view the HTML source and see what is going on. What version of eStore are you using?
my site is [http://thetowerofdreams.com/]
As mentioned, the elevator would slide out when mouse left the left corridor. However, when I activated the e-store, the effect did not work.
You have a plugin or theme that is including a very old version of JQuery library which is creating a JavaScript conflict. I am referring to the following line of code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js"></script>
This post will explain why its bad and causing issues:
Thanks Key master
I removed the said line and replaced it with
<?php wp_deregister_script( ‘jquery’ ); ?>
<?php wp_register_script( ‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js’); ?>
<!– using 1 to get the latest belonging to 1.. less than 2.0 –>
<?php wp_enqueue_script( ‘jquery’ ); ?>
And it seems to work with E-store activated. I don’t quite understand what wp_enqueue is about in respect to Jquery. However, it does solve my problem and I will keep the ajax in the latest version 1 as above.