On your site
The language switcher
Add a switcher with a builder element or shortcode, and manage its default settings on one screen.
Where you can place it
You can add the same switcher in several ways: a builder element, a shortcode or a menu item. You can also float it in a corner of every page.
Search your builder’s element list for “WPGlotty Language switcher”. It has the same name in every supported builder.
- The block editor: the WPGlotty Language switcher block
- Breakdance, Bricks, Divi 4, Divi 5, Elementor and WPBakery: a WPGlotty element with every setting in the builder’s panel
- Any other builder: the shortcode [wpglotty_switcher]
- A menu: add the languages under Appearance → Menus
- Floating: place it in a screen corner and turn it on or off with one setting
Set it once, on the Switcher tab
Set your defaults under Settings → Switcher. The plain [wpglotty_switcher], menu items and floating switcher use these settings. Change a style or colour here and these switchers update across your site, with no pages to edit.
The live preview shows your changes before you save. The screen also gives you a shortcode to copy and paste.
To make one switcher look different, add settings as attributes to its shortcode. These override the defaults on the tab. Use them only where you need a different design, because that switcher stops following later changes to those defaults.
In a page builder
The builder element uses the same setting names in the builder’s own panel. It shows only settings that apply to your chosen style. Choose the sliding switch to see its skins, or a modal to see its panel settings.
The builder canvas shows the real switcher, with the same animation visitors see. Click a language to preview it without leaving the page you are designing.
Check which builders are installed
WPGlotty → Integrations lists builders with a WPGlotty element and shows which are installed on your site. Check here to see whether to use an element or the shortcode.
How it looks
Choose from 11 styles. Dropdown, modal and off-canvas styles open a panel when clicked. The sliding switch has four skins and an indicator that moves to your chosen language. List and inline styles use plain links. The plain text style shows only language names.
Native names work best: a French visitor looks for “Français”, not “French”. Flags stand for countries, not languages.
A site with exactly two languages
Two languages do not need a menu. The toggle shows the other language and nothing else: one click, no list, no panel. It can be a link, a button or a small switch.
You can choose the toggle only when your site has exactly two active languages. With more languages, use a style that lists them.
Without touching a page
One setting turns on the floating switcher, which then appears on every page without you editing any of them. Choose any of the four corners and set its distance from the edge. You can also hide it on mobile or desktop.
Styling it to match the site
You can style the switcher without writing a stylesheet. Set text and background colours for normal, hover and current-language states. Adjust the dropdown panel, modal backdrop and focus ring. Choose the font, size, weight, letter spacing and capitalisation. Set borders, corner radius, shadows, padding, gaps, width and alignment. Change the size and roundness of flags. You can also choose how panels open, how long they take and how the sliding switch moves.
Choose a preset to set the shape, spacing and movement together: compact, roomy, fully round, square or springy. Presets leave colours unchanged, and you can adjust any setting afterwards.
A toggle has three separate colour settings: the track, the knob and the other language.
Which languages, and in what order
Each switcher has an on/off setting for every language. Turn one off to hide it from that switcher. The language remains available on your site.
You can give the switcher its own order, different from the one on the Languages screen, and give each language your own label. You can also hide the whole switcher on mobile or desktop.
[wpglotty_switcher style="list-horizontal" labels="flag+native"
order="nl,de,fr" hide_languages="en"
gap="18px" radius="9px" hide_on="mobile"] Where it sends people
The switcher links to the same page in the other language. If that version is missing, it links to that language’s home page rather than showing a 404. This can happen with an untranslated post or an excluded page.
WPGlotty translates whole sites, so this fallback is rarely needed. It handles cases where content was deliberately excluded before you added a language.