Jump to content

change tab text into icon/image


Recommended Posts

There are several posts in the forum about changing the tab name or adding new tabs.

 

How is it possible to change the text in name of the tab with an image or icon?

For example, I would like to change "more info" with the following image

info-icon.png

Anyone can help?

 

Thanks

Navid

Link to comment
Share on other sites

you can do it in product.tpl file, there is a code:
 

<li><a id="more_info_tab_more_info" href="#idTab1">{l s='More info'}</a></li>

instead of {l s='More info'} use:

<img src="URL_TO_YOUR_IMAGE" />

full code:
 

<li><a id="more_info_tab_more_info" href="#idTab1"><img src="URL_TO_YOUR_IMAGE" /></a></li>
Link to comment
Share on other sites

Well... this is my solution:

 

create a block with type custom_html and add the following html:

<div class="custom-content">
 <a href="http://www.site.com/en/authentication?back=my-account">
  <img style="float: left;" src="http://www.site.com/img/cms/login.jpg" alt="Login" width="60" height="55" />
 </a>
</div>

Suggestions are always welcome  :)

Navid

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...