內容簡介
MslsMenu 外掛為 WordPress 多站點提供語言切換功能,能將語言連結自動附加至選定的導航菜單,無需編輯佈景主題或撰寫 PHP 代碼,簡化了語言切換的實作過程。
【主要功能】
• 自動將語言連結附加至導航菜單
• 支援多種佈景主題位置設定
• 無需編輯佈景主題或撰寫 PHP
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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.
