Dropdown Menu Widget
DropDown fixed in WordPress 3.6.1 (9 posts)

  1. pacificshack
    Posted 2 years ago #

    I too had the same issue some people were having here with their dropdown no longer working. It appears the recent version of dropdown and WordPress don't play nicely, and it doesn't seem to pick up the hoverIntent.js file which the plugin needs to display the dropdown.

    So my temporary fix which worked for me was to simply point to the hoverIntent.js file in the head of my site, after loading the most recent version of JQuery:

    <!-- JQUERY LOAD -->
    <script type="text/javascript" src="http://www.YOURWEBSITE.com/wp-content/themes/MYTHEME/js/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="http://www.YOURWEBSITE.com/wp-content/plugins/dropdown-menu-widget/scripts/hoverIntent.js"></script>

    This seems to get the plugin working again. I have looked in the core .php file and although I can see the point it loads in the hoverIntent.js file, it makes no difference.

    Not the best fix I admit, it's a sticking plaster. But better to have it than not having a dropdown working.


  2. cryogenn
    Posted 2 years ago #

    Hi, which file did you edit to add your above code?

  3. sdhunt
    Posted 2 years ago #

    Thanks, pacificshack! I'm having the same problem but your patch is working for now.

  4. cryogenn
    Posted 2 years ago #

    sdhunt, could you explain what steps you went through to apply the fix? I have not been able to solve it myself, so was hoping to get some more detailed assistance.

  5. sdhunt
    Posted 2 years ago #

    Hi cryogenn,

    All I did was copy pacificshack's code (actually i just took the second script tag) and pasted it into the header.php file of my theme.

    I did also find that a plugin i was using (Lightbox Gallery) was still conflicting with the dropdown so I removed it.

    I hope that helps!

  6. cryogenn
    Posted 2 years ago #

    Thanks for the reply sdhunt.

    Should I assume that you already have the below line in your header.php file? I checked my directory structure and none of the themes I have installed has a "js" folder. Is this something I have to add myself and if so, where would I get the file from?

    <script type="text/javascript" src="http://www.YOURWEBSITE.com/wp-content/themes/MYTHEME/js/jquery-1.10.2.js"></script>

  7. sdhunt
    Posted 2 years ago #

    You're welcome, cryogenn.

    I found I had jquery already loaded in the wp_head section. In the page source code it looks something like this:

    <script type='text/javascript' src='http://www.YOURWEBSITE.com/wp-includes/js/jquery/jquery.js?ver=1.10.2'></script>

    So, it was going to be redundant to call for another version of it. I'm assuming all 3.6.1 installs should have this as well.

  8. cryogenn
    Posted 2 years ago #

    Okay thanks, I double checked mine and I do not have that code, nor that jQuery file on my server. I'll have to keep looking for a solution or it would be great if the developer could just fix the issue.

    Anyway, thanks for all your help.

  9. magicmike49
    Posted 2 years ago #

    I solved the problem by deregistering WordPress registered hoverIntent JQuery function, like so:

    wp_deregister_script( 'hoverIntent' );

    I've put this just before the enqueuing done by the DropdownMenu plugin, in line 42 of /wp-content/plugins/dropdown-menu-widget/shailan.DropDownMenu.php

    So the code reads:

    wp_deregister_script( 'hoverIntent' ); <= added
    wp_enqueue_script( 'hoverIntent', plugins_url( '/scripts/hoverIntent.js' , __FILE__ ) , array('jquery') );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Dropdown Menu Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.