Shape 5

Joomla Templates => Eden Rock - April 08 - Club => : visor June 13, 2009, 01:11:11 AM



: Image on mainmenu item
: visor June 13, 2009, 01:11:11 AM
Hi, I can't seem to be able to display an image either on the left or right side of a "mainmenu item"

In all other menus this works ok if I select the image in parameters and then go to Extensions -> Module Manager and select the menu module that I want to have images activated on.

The problem is that, the mainmenu does not show up on the module manager so I cannot enable the "show menu images" option as with the other menus.

I'm attaching an image showing the highlighted menu element  that I want to have an image on the left so you can better understand. I would really appreciate any help since this is driving me crazy and I cannot seem to find anywhere to change this.

Thanks in advance.


: Re: Image on mainmenu item
: mikek June 15, 2009, 07:32:12 AM
Hello, this is a built in menu, not a menu module, it does not support images.


: Re: Image on mainmenu item
: visor June 15, 2009, 10:02:45 AM
Actually I figured it out, it is a little bit ugly hack but it works.

I just added
:
<div id="myelement">Item</div>
as the menu item name in the name box and I modified myelement inside my css class file to have a background image, that way it show the image. Hope this help someone else although I'm not aware of the security risks this may impose, if any.