1

I am trying to add my own image menu names (I prepared png files) instead of menu titles (Navigate, Category, Home etc.). How can I do this? Which files should I need to check? I know Html Menu module but it does not work on menu titles.

Thank you.

2 Answers 2

0

Firstly I'd say menu titles should be text, for accessibility, maintainability and SEO reasons.

If you must, you could consider using CSS background images by checking the classes or IDs on those menu elements and adding CSS rules target them.

0

Try to use MenuImage module. Hope you will got result as you want. I have not try this module.

When editing a menu link, this module provides a file field to upload an image to associate with a menu item. In the array returned by menu_link_load, the fid of the image file is contained in [options][content][image]. This may may be passed as a parameter to file_load to obtain its public:// uri, and further used with either file_build_uri or image_style_url to populate the src= attribute of an .

OR

Use Menu Icons module.

This module allows you to upload an image in the menu-item's configuration form.

After uploading the image, the icon data will be added to the menu link's options array.

1
  • Menu Attributes can be used as well with a background image set in css
    – Geoff
    Jun 27, 2015 at 2:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.