How to use icons in WHMCS to select the language in client area

To use graphic icons (i.e. flags) instead of a text menu in client area to allow the user the select preferred languages, for each supported language insert in header.tpl where appropriate a line of code as:

<a href="{$smarty.server.PHP_SELF}?language=English" style ="padding-left: 0px !important; padding-right: 0px !important;"><img src="templates/{$template}/images/gb.jpg" title="English" alt="English" width="31" height="21" border="0" /></a>



A wide and comprehensive collection of free flag icons (various styles, formats and dimensions) is available here: https://www.countryflags.com

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to use for a product group a cart different than the preset

For each product group in WHMCS we can set the cart to be used to present it and process the...

How to add a cookie bar to WHMCS

In order to add a cookie bar to your own installation of WHMCS: copy somewhere on your WHMCS...

How to prevent the user to use different currencies

It may happen that, for various reasons, you need to configure different currencies in your...

Useful MySQL queries for WHMCS

This query replace companyname with firstname and lastname of customer, when companyname is not...

How to reduce the number of available languages in WHMCS

WHMCS comes with a lot of available languages for its interface, few of them also quite exotic.So...