WordPress.org

Support

Support » Plugins and Hacks » DropDown fixed in WordPress 3.6.1

DropDown fixed in WordPress 3.6.1

  • pacificshack
    Participant

    @pacificshack

    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.

    http://wordpress.org/plugins/dropdown-menu-widget/

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

    sdhunt
    Participant

    @sdhunt

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

    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.

    sdhunt
    Participant

    @sdhunt

    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=”http://www.YOURWEBSITE.com/wp-content/themes/MYTHEME/js/jquery-1.10.2.js”></script>

    sdhunt
    Participant

    @sdhunt

    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.

    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.

    magicmike49
    Member

    @magicmike49

    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.