WordPress.org

Ready to get started?Download WordPress

Forums

JQuery Vertical Mega Menu Widget
wp_head broken (2 posts)

  1. rmast
    Member
    Posted 1 year ago #

    Hello,

    I tried to get this plug in to work for WordPress 3.5 and 3.4.2 and even tried it on a fresh install. It didn't work.

    With activated plug-in I saw that WordPress puts the javascript-definitions meant for the header at the end of the page, just after where it should be used.

    I used NetBeans 7 to debug it.

    Some googling revealed that in wp-content/plugins/jquery-vertical-mega-menu/dcwp_jquery_vertical_mega_menu.php there should be a little change at line 60:

    add_action( 'wp_head', array('dc_jqverticalmegamenu', 'header'),0 );

    or you could try to change 'wp_head' for 'init'.

    I'm afraid something has changed to the WordPress-definition of add_action wp_head lately.

    http://wordpress.org/extend/plugins/jquery-vertical-mega-menu/

  2. mikeotgaar
    Member
    Posted 1 year ago #

    @rmast
    Thanks for this info - I've also got issues with mega menu and WP3.5 (with menu expanded always).
    I'm going to try your suggested fix, or possibly hard code the js file in header
    The java file has to be called from the <head> section or the menu won't work (seen this before with a java CDN plugin putting the .js file in footer.
    (Many changes to the way WP3.5 deals with Java and other things - some of them are not good...)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic