Jump to content

How to put an imagen in menu?


Recommended Posts

Hello,

Is use the deafult module of horitzontal menu in my shop. Where I have the diferentes categories with the respective url. But the first item of the menu is "Home" that goes to the principal page of my shop.

 

How can I do to change the word "Home" to a png icon that i have uploaded? is posible with the default menu module?

 

Thanks!

Link to comment
Share on other sites

in back office there is no option to turn on this feature etc.

you have to code it by yourself in (1)module php file or in (2)module .tpl file

1) open blocktopmenu.php, there is a function: private function makeMenu()

at the begining of the function add own code like <li><a href="urlhere">'.$this->l('home').'</a></li>

 

2) do the same in blocktopmenu.tpl right before the {$MENU}

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...