MslsMenu
The Multisite Language Switcher already offers plenty of ways to output its language links: a block, the shortcodes [sc_msls] and [sc_msls_widget] , the classic widget, a content filter, and the msls_the_switcher() API for your theme files. What none of them covers is a navigation menu. A classic me
The Multisite Language Switcher already offers plenty of ways to output its language links: a block, the shortcodes [sc_msls] and [sc_msls_widget] , the classic widget, a content filter, and the msls_the_switcher() API for your theme files.
What none of them covers is a navigation menu. A classic menu rendered by wp_nav_menu() accepts menu items and nothing else, so there is no slot for a block or a shortcode inside it – and writing a custom walker into the theme is more work than most sites are willing to spend on a language switcher.
MslsMenu closes that gap. Select the theme locations you want in the settings and the language links are appended to every menu rendered at those locations. No theme edit, no PHP, no custom walker.
Screenshots & previews.
- 01Use the WordPress plugin installation and search for “MslsMenu”.
- 02Alternatively, download the plugin, uncompress it with your preferred unzip programme and upload the folder mslsmenu to the /wp-content/plugins/ directory.
- 03Activate the plugin
- 04You will find the configuration of the plugin once in each blog in Settings -> Multisite Language Switcher
- 05Set the menu specific options such as <li class="msls-menu"> before the item output or the description. Please, check the Screenshots-section too!
Frequently asked questions.
Does this work with the Navigation block of a block theme?
No. MslsMenu hooks into wp_nav_menu_items , a filter of the classic wp_nav_menu() function, and the Navigation block does not run through it. In a block theme use the block of the Multisite Language Switcher instead and place it next to the Navigation block in your header template.