https://github.com/onthegosystems/iso-codes-for-menus
This is an example of a language switcher template which displays only ISO codes (for menus only)
https://github.com/onthegosystems/iso-codes-for-menus
Last synced: 10 months ago
JSON representation
This is an example of a language switcher template which displays only ISO codes (for menus only)
- Host: GitHub
- URL: https://github.com/onthegosystems/iso-codes-for-menus
- Owner: OnTheGoSystems
- Created: 2016-11-10T18:52:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-11T11:06:22.000Z (over 9 years ago)
- Last Synced: 2025-02-24T23:43:08.577Z (over 1 year ago)
- Language: HTML
- Size: 7.81 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ISO codes for menus
This is an example of a custom WPML language switcher template created using Twig. It displays only ISO codes and is used for menus only.
## Screenshot

_Note: Some colors where added to highlight the language switcher_
## Installation
- Copy this template folder into `{your-theme-folder}/wpml/templates/language-switchers/`.
- Go to the WPML -> Language page and scroll to the "Menu language switcher" section.
- Add or edit a language switcher for menus
- Use the "Language switcher style" dropdown to select the "Your theme - ISO codes for menus" option (where "Your theme" is the name of the site's active theme) and save.