PrestaShop 1.6.x. How to display flags in the language switcher

Download the flags
  1. Make sure all the languages have flags in Localization -> Languages section.
  2. Go to www.famfamfam.com and download the icons: 
  3. Open the downloaded zip file and extract the icons you need.
  4. In your PrestaShop admin panel go to Localization -> Languages section: 
  5. Click the Edit button for the language you want to add a flag: 
  6. Upload the country flag from your computer: 
  7. Click the Save button to confirm the action.
Display a flag in the language switcher on the front end
  1. Open the  themes/themeXXXX/modules/blocklanguages/blocklanguages.tpl with some code editor: 
  2. Insert the following code before {$language.name|regex_replace:"/\s\(.*\)$/":""} twice on lines 7 and 22 (approximately):

it will look like:

Save the changes in the file and re-upload it to the server.

Hopefully, this tutorial was helpful for you.