I tried to add a new icon with the menu attributes module to a self crated link.

In global.style.css I added the following:

.main-menu-forum a {
  background: url('../images/icons/icon-forum.png?1379947793') no-repeat center 10px;
}

Within drupal I added the class with menu attributes and the class is showing up as you can see on the atatched screenshot.

The icon still does not show up.

Any ideas where this Issue come from?

CommentFileSizeAuthor
forum-class.png13.58 KBJoachim Namyslo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Joachim Namyslo’s picture

I checked the path of the icon twice and the path is correct. I even installed an icon font and added it to the .info file but regardless what I'm doing the theme doesn't show the icon images setted by the classes given from menu attributes module.

Joachim Namyslo’s picture

Priority: Normal » Major
Status: Active » Needs work
Joachim Namyslo’s picture

Status: Needs work » Active
Zarabadoo’s picture

Category: Bug report » Support request

On the surface, it seems like that should work. It is hard to say waht i going on without knowing more about where the specific style was placed. IT is also recommended to not edit the theme directly, but create a subtheme of origins and then add your additions in a separate stylesheet.

Also flagging this as a support request since it is not a bug of the distro itself.

Joachim Namyslo’s picture

I just respond because this is not a support request in my opinion. Commons has menue attributes ion board so the behavior that is expected by a normal user is

1. Add a css class with proper style information for the icon.
2 Create a link with the menu module
3. add a specified class that contains the image and positioning information for the Icon
4. Hit save and see the expected result.

If you try to do these 4 simple steps regardless if you add this class in the main or in a sub-theme you will see that is is not what happens. The Icon is not shown so this is an internal system bug because menu attributes doesn't have the same behavipr as in a standard drupal installation, isn't it?

I posted some related requests to this and I' am glad to see your response.

japerry’s picture

Assigned: Unassigned » Zarabadoo
Priority: Major » Normal

Bumping down to normal. It'd be great to have some further documentation around this. Also assigning to Al to respond to the last question.

Joachim Namyslo’s picture

Just to update this. Menu attributes functionality is harmed because every menu item gets a separate I'd by the code that is responsible for this. There is no chance for a normal user to figure out the proper class name because menue attributes attributes has no change to serve this number to the CSs class Form on the add add menu link page