Conditional Menus

外掛說明

Conditional Menus is a simple yet useful WordPress plugin by Themify, which allows you to swap the menus in the theme as per specific conditions. In short, you can have different menus in different posts, pages, categories, archive pages, etc. It works with any WordPress theme that uses the standard WordPress menu function.

How to use it

Once you activate the plugin, you will see the conditional menus on the Manage Locations tab located in your WP Admin > Appearance > Menus page.

1) To add conditional menu: click “Conditional Menu” and select a menu from the list (you can create these menus in the “Edit Menus” tab)
– You can remove the menu by selecting “Disable Menu” from the list.
2) Click on “+ Conditions” to add conditions in the modal box (tick the checkboxes where you want the menu to appear)
3) To remove the conditional menus, click on the “X” button

Visit https://themify.me/conditional-menus for more details.

螢幕擷圖

  • Admin interface

安裝方式

  1. Login to your wp-admin > go to Plugins > Add New and upload the ‘conditional-menus.zip’
  2. Activate the plugin

使用者評論

2024 年 6 月 19 日
I am simply trying to create two types of menus. One is for the Wordpress website itself and the other is only for the webshop, which is WooCommerce ofcourse. No matter what I do or change. The best result I am getting is that the website menu is hidden on the webshop, but the webshop menu isn’t shown then. Sigh.This plugin was exactly what I was looking for based on the description.But does it work? No. Is it easy to understand? Again no. It’s either this or I am plain stupid.//update: well gave it a completely new go. It now works, however partially. If I go to certain webshop pages, the original website menu appears. So this is useless. It should be displayed on every page with WooCommerce in it and hide the stupid other menu. I am going to uninstall this. Not going to work.
2023 年 7 月 22 日
Bit complicated in that you are to create multiple menus depending on the conditions you define, such as roles. Rather it have been embedded into one menu, but it is also very powerful this way.
2023 年 7 月 3 日
Did not work for me , I have different menus for logged in & logged out users and I want to show menu for logged out users only in front page but this plugin doesn’t know how to do so !
閱讀全部 64 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Conditional Menus〉的開發相關工作。

參與者

將〈Conditional Menus〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

The changelog is located at: https://themify.org/changelogs/conditional-menus.txt