Closed (won't fix)
Project:
Menu Icons
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2009 at 12:37 UTC
Updated:
15 Feb 2010 at 20:05 UTC
I created a menu icon which displayed as expected until I disabled the devel module (specifically, it may have been the themer part of devel that was the problem - I only guess that based on the CSS generated). Once disabled, the menu icon longer displayed, although the CSS was still being loaded in the html.
While not working, the CSS looked like this (how is this span tag ending up in css?):
<span id="thmr_1" class="thmr_call">
.menu-1571, ul.links li.menu-1571 {
background-image: url(/sites/dir.illuminateweb.org.uk/files/menu_icons/menu_icon_1571.png);
padding-left:45px;
background-repeat: no-repeat;
background-position: left;
height:45px;
}
</span>To remedy, I disabled the devel modules, removed the menu icon from the menu settings page then re-enabled the menu icon. This is the only sequence I could find that would get my menu icon back. After that, the CSS looked like this:
.menu-1571, ul.links li.menu-1571 {
background-image: url(/sites/dir.illuminateweb.org.uk/files/menu_icons/menu_icon_1571.png);
padding-left:45px;
background-repeat: no-repeat;
background-position: left;
height:45px;
}Correct, as far as I can tell.
Any ideas?
Comments
Comment #1
mshepherd commentedThis seems to be a duplicate of http://drupal.org/node/499428?
Please mark it such if you agree.
Matthew
Comment #2
sylvain lavielle commentedI think it's because the module use a hook_theme to generate the CSS
The devel module theme developper add a on themed html output when theme developper is enabled
using hook_theme to generate a css is probably not a good way
Comment #3
skilip commentedIt is theme developer which puts all these spans around theme generated markup. Disable Theme Developer and regenerate the CSS file.