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

Better social condivision for a site based on WHMCS

To set the image to be used in social condivision (i.e. Facebook), insert in header.tpl following...

How to add SEO META TAGS in WHMCS pages

In order to add custom META TAGS in EHMCS pages for SEO purposes, you need edit your current...

How to disable a customer to pay invoices partly with credit balance

in WHMCS if a customer has not enough credit balance for full payment of an invoice, WHMCS allows...

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 add a cookie bar to WHMCS

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