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:


  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

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 insert a Youtube video in WHMCS knowledgebase article

To insert a YouTube video in an article of the WHMCS knowledge base, you need to insert following...

How to comment in template (.tpl) files

If you need to insert a comment in a .tpl file, or comment a block of code to disable it, you...