Adding a WPML Language Switcher on the Menu

Adding a WPML Language Switcher on the Menu

You have to add the following snippet to functions.php file of your theme. The code was originally in this link but with the language code, like “en” for English, “gr” for Greece etc. The following code shows the language flag instead. function...