[WordPress] 外掛分享: MslsMenu

首頁外掛目錄 › MslsMenu
200+
安裝啟用
★★★★
4.6/5 分(8 則評價)
22 天前
最後更新
問題解決
WordPress 6.1+ PHP 7.4+ v3.0.2 上架:2014-09-17

內容簡介

MslsMenu 外掛為 WordPress 多站點提供語言切換功能,能將語言連結自動附加至選定的導航菜單,無需編輯佈景主題或撰寫 PHP 代碼,簡化了語言切換的實作過程。

【主要功能】
• 自動將語言連結附加至導航菜單
• 支援多種佈景主題位置設定
• 無需編輯佈景主題或撰寫 PHP

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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 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.

文章
Filter
Mastodon