Support » Plugin: Dropdown Menu Widget » DropDown fixed in WordPress 3.6.1

  • 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=””></script>
    <script type=”text/javascript” src=””></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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi, which file did you edit to add your above code?

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

    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.

    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!

    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=””></script>

    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=''></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.

    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.

    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') );

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘DropDown fixed in WordPress 3.6.1’ is closed to new replies.