I use print theme('nice_menus_main_menu') in one of my theme template files to display my site Main Menu because I want to wrap <nav> tags around it. (I'm using an Omega 3.x sub-theme.)

I've updated to 7.x-2.4 and my menu has completely broken now.

However, if I add a Nice Menus block to my site and display the same menu within a block, both menus appear almost correctly (minor issues like Font family missing from the Block version).

A quick comparison of the source code for each reveals that the <ul> tag is missing the "nice-menus-processed sf-js-enabled" classes when it's just themed without the block on the page, also the CSS file "nice_menus.css" as well as my CSS file set in my theme settings (called "mainmenu.css" on my site - based off of "nice_menus_default.css") are missing.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xiukun.zhou’s picture

Status: Active » Needs review
FileSize
977 bytes

hi @SkidNCrashwell,
thanks for posting the bug. can you help me tested the patch? Thank you very much

JGonzalez’s picture

Can confirm that this patch fixes nice menus to act like it did before 2.4 update.

DrupalGideon’s picture

I would like to confirm that this is now working for me as well.

thomas73’s picture

It has helped for me too. Thanks.

xiukun.zhou’s picture

Status: Needs review » Fixed

Thanks thomas73, SkidNCrashwell, JGonzalez for tested the patch.
commit: ee9d3ad

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.