Transforms the output of the Multisite Language Switcher to an HTML select
- WordPress 5.6 or higher running in multisite mode.
- Multisite Language Switcher plugin (MslsSelect replaces its default list output).
- PHP 7.4+ to match the plugin minimum.
- Install via the WordPress admin: go to
Plugins → Add New, search for MslsSelect, and click Install Now. - Or install manually by uploading the latest
mslsselect.ziptowp-content/plugins. - Activate MslsSelect network-wide (or on selected sites); the frontend hooks load automatically.
-
Wherever Multisite Language Switcher renders its language list (widget, block, or
the_msls()template tag), MslsSelect swaps the markup for a<select>element and auto-redirects after selection. -
The generated
<select>uses themsls_languagesclass; target it in your theme for styling, e.g.:.msls_languages { max-width: 220px; }
-
No additional configuration is required. The plugin ensures the current site stays in the list by updating the
mslsoption when needed.
- If you still see a list instead of a dropdown, confirm the Multisite Language Switcher plugin is active and outputting links on that template.
- Clear page caches or CDN layers after activation so the new markup and JavaScript load correctly.
- Check the browser console for JavaScript errors; the minified file is enqueued as
mslsselectif you need to debug or dequeue it temporarily.
