Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

header and multiple gif menus..


Recommended Posts

I have a gif menu in header.php.. now I need a multiple language setup.. can I use several header.phps so the gif menu displays the correct language or is it any other trick available??


Thanks in advance


Link to comment
Share on other sites

The best way to do this would be to place each image into it's appropriate languages folder/images/buttons, just like all of the buttons on your site.

Then use a code similar to this in your header.php


<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?>


Change FILENAME_DEFAULT to point the appropriate page, such as FILENAME_CONTACT_US etc... for each button you have in your menu.


Change the name of the image button_continue.gif for each image you are using.


and change IMAGE_BUTTON_CONTINUE to represent the alt text.


In each language file english.php, etc. be sure that you have this for each image reference: define('IMAGE_BUTTON_CONTINUE', 'Continue');

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...