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.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityFirstly 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.
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.