Hi there,

Is there an easy way to get images to appear in the menu items?

Thanks!

Comments

GeekElectro’s picture

I'm not sure if you mean you only want images to be used as menu items, or if you want to be able to add little icons along with the text in menu items.

Joomla! has the ability to put images along with the menu text built in as a setting option on menu items, but I was hoping to find something similar in Drupal.

I saw mention of a module or two that might do this here in Drupal. There was also mention of a project that showed you how to hack a template to allow images as menu items. But I haven't seen any setting that lets you easily add images to menu items.

Anyone have ideas?

Rowanw’s picture

There are ways to automatically add CSS classes to each menu item, allowing you to use CSS to add the image. This keeps your menus readable by screen readers and search engines, it also means you can do image rollovers without using any JavaScript.

Some themes already add a unique class to each menu item, so check to see if yours does.

I will post the code I use later...

behindthepage’s picture

Check out Menuwriter
http://drupal.org/project/menuwriter

Regards
Geoff

Regards
Geoff

franravi’s picture

Here is another option: Imagemenu module

They have a stable release for drupal 4, 5, and 6.

Maybe they could add a way for easy image uploads, like using IMCE module or similar. That would be great.