The language switcher
A shopper needs one obvious control to change language. The add-on ships one, and it works with the block editor, a shortcode, your navigation menu, or as a floating pill.

Placing it
| Route | Use |
|---|---|
| Block | Search for IvaSure: Language Switcher in the block inserter. |
| Shortcode | [ivasure_language_switcher] anywhere a shortcode runs. |
| Navigation menu | Set placement to menu and pick a menu location - your theme then owns the position, including how it collapses on a phone. |
| Floating | Set placement to float and choose a corner. Nothing to edit in a template. |
Block themes register no menu locations
If your theme is a block theme there is nothing for the menu placement to attach to. Use the block - you can put it in the header template part and get the same result with more control.
The floating placement offers four corners: top right, top left, bottom right and bottom left. It clears announcement bars at the bottom of the screen rather than sitting on top of them.
The five display modes
| Mode | Shows |
|---|---|
| Flag and name | The default. A flag and the language’s own name. |
| Flag | The flag alone. |
| Flag and code | A flag and the locale code. |
| Code | The code alone. |
| Name | The name alone, no flag. |
A flag is a country, not a language
Flag-only is the most compact mode and the least clear one: Spanish is not Spain, English is not the United States, and a shopper who does not recognise a flag has nothing else to go on. The accessible name always carries the full language name, so a screen reader is fine - it is sighted shoppers who lose the information. Prefer a mode that includes the name unless space genuinely will not allow it.
Language names are always shown in their own language - Romana, not Romanian - because a shopper looking for their language is looking for the word they use for it.
What it does when used
- Choosing a language navigates to the same page with
?ks_lang=set. - The choice is remembered for the rest of the visit.
- The switcher relabels itself to the current language.
- The whole control is a native disclosure, so it works with the keyboard and without JavaScript.
Compact on small screens
Below 782px the name is dropped and a short code takes its place, so the control stays tappable without pushing the rest of your header off the screen.
Was this page helpful?
Thanks for your feedback.
There was a problem submitting your feedback. Please try again later.