
內容簡介
藉由可見度規則,您可以控制網站訪客看到哪些選單項目。以下是一些範例:
僅顯示選單項目,當 使用者已登入
當裝置為行動裝置時,隱藏選單
顯示選單 給管理員和編輯者
已登入使用者時,隱藏登入或註冊連結
顯示選單給美國或英國的使用者
僅顯示提供有效會員身份的顧客的選單
瀏覽語言為英文或西班牙語的使用者,顯示相關選單
啟用外掛後,每個選單項目都會有一個新選項「變更選單項目可見度」,可啟用選擇可見性規則。
您可以查看截圖範例或嘗試這裡→ demos.layered.store
功能
基本的可見性規則集
使用者狀態使用者已登入
使用者角色管理員 編輯者 作者等等
頁面類型首頁 單一頁面 單一文章
是否是封存頁面(年度,類別,搜尋結果等)
訪客裝置行動裝置
進階可見性規則–需要使用 More Visibility Rules 擴充套件
訪客位置– 檢測訪客的國家
訪客語言– 檢測訪客所選擇的語言
WooCommerce訂閱- 為擁有有效訂閱的使用者顯示選單
WooCommerce會員資格- 為擁有有效會員資格的用戶顯示選單
群組- 檢測使用者是否在特定群組中
WishList Member- 檢測使用者的會員等級
Restrict Content Pro- 檢測使用者的訂閱等級
多個規則– 混合多個規則以獲得選單項目的可見度
當使用者已登入 AND 設備為行動裝置時,顯示
當使用者是管理員 AND 為首頁時,顯示
支援新增自訂規則
外掛標籤
開發者團隊
② 後台搜尋「If Menu – Visibility control for Menus」→ 直接安裝(推薦)
原文外掛簡介
Control what menu items your site’s visitors see, with visibility rules. Here are a few examples:
Display a menu item only if User is logged in
Hide menus if Device is mobile
Display menus only for Admins and Editors
Hide Login or Register links for Logged in Users
Display menus for Users from US or UK
Display menus only for Customers with active membership
Display menus for visitors browsing with Language English or Spanish
After the plugin is enabled, each menu item will have a new option “Change menu item visibility” which will enable the selection of visibility rules.
Check the examples in screenshots or try it here → demos.layered.store
Features
Basic set of visibility rules
User state User is logged in
User roles Admin Editor Author etc
Page type Front page Single page Single post
Is Archive page (year, category, search results, etc)
Visitor device Is Mobile
Advanced visibility rules – requires More Visibility Rules Add-on
Visitor location – detect visitor’s Country
Visitor language – detect visitor’s selected Language
WooCommerce Subscriptions – Display menus for users with active subscription
WooCommerce Memberships – Display menus for customers with active membership plans
Groups – Detect if users are in specific groups
WishList Member – Detect the users’ membership level
Restrict Content Pro – Detect the users’ subscription level
Multiple rules – mix multiple rules for a menu item visibility
show if User is logged in AND Device is mobile
show if User is Admin AND Is front page
Support for adding your custom rules
