- This topic is empty.
-
AuthorPosts
-
July 25, 2014 at 10:28 am #176468rouviereParticipant
I am working on a site that uses jQuery for a number of functions but I am having a repeating error:
hoverIntent is not a function
I have referenced similar questions on this forum and they almost universally say that it is due to multiple references to jQuery, however, I have carefully reviewed the code and the source code and cannot find any duplicate references.
There is just this one in functions.php
// Load jQuery if ( !is_admin() ) { wp_deregister_script('jquery'); wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"), false); wp_register_script('jquery', ("js/jquery.dropmenu.js"), false); wp_register_script('jquery', ("js/jquery.dropmenu2.js"), false); wp_enqueue_script('jquery'); }
I would really appreciate another set of eyes to help pinpoint and resolve this dilemma.
July 25, 2014 at 11:04 am #176471AlenParticipanthoverIntent is a optional plugin that goes with Dropdown Menu plugin you’re using. Look in the settings for this plugin to turn off hoverIntent. It is being outputted by the plugin…
<!-- Dropdown Menu Widget Effects by shailan (http://shailan.com) v1.9.3 on wp3.9.1 --> <script type="text/javascript">/* <![CDATA[ */ jQuery(document).ready(function($) { var config = { over : function(){ $(this).find("ul:first").fadeIn('fast'); }, out : function(){ $(this).find("ul:first").fadeOut('fast'); }, timeout : 100 } $(".dropdown li").hoverIntent( config ); }); /* ]]> */</script> <!-- /Dropdown Menu Widget Effects -->
hoverIntent is a plug-in that attempts to determine the user’s intent… like a crystal ball, only with mouse movement! It is similar to jQuery’s hover method. However, instead of calling the handlerIn function immediately, hoverIntent waits until the user’s mouse slows down enough before making the call.
July 25, 2014 at 11:32 am #176476rouviereParticipantHi Alen,
You nailed it. Thank you for the insight!
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.