Closed (fixed)
Project:
Nice Menus
Version:
7.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2011 at 03:03 UTC
Updated:
14 May 2011 at 06:32 UTC
Jump to comment: Most recent file
Comments
Comment #1
austinmroczek commentedI had a similar issue with a brand new Zen sub-theme. I created my own copy of nice_menus_default.css and named it nice_menus.css in my theme directory. However, once I configured Nice Menus to point to my new CSS file it was broken, even though I hadn't changed any CSS.
After a little testing I figured out that the sites/all/modules/nice_menus/nice_menus.css file was not included in the list of CSS files when my custom CSS file was configured, and only when I used the exact same filename of "nice_menus.css".
I think it has to do with the D7 API for drupal_add_css, which has changed from D6. http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_ad.... There are many new options that can be passed. When I passed a unique "basename" option for each CSS file, the problem was solved.
I changed lines 169-178 of nice_menu.module (patch attached)
Comment #2
vordude commentedCommitted with 0c6ceb5f8f7 Good Call, Thanks Loads!