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

評価

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 !
2023年5月10日
I got it working, half ways. I can make a menu change from open menu to members menu when members log in. PERFECT.I can't make a meny change back from members menu to open menu when members log out. Can anyone tell me how to do that? Then I would go from three to five starts.
2023年4月11日
Use it on a OnePage site (primary Home menu with anchor IDs only) where posts and archives couldn't link back to the main page. Had it set up in less than five minutes and it works like a charm (on WP 6.2, that is).
62件のレビューをすべて表示

貢献者と開発者

Conditional Menus はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Conditional Menus” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.2.5 (2024.01.11)

  • Reverted plugin to previous version due to major compatibility issue with Polylang from v1.2.4

1.2.4 (2024.01.10)

  • Fix: WPML support: auto switch conditional menus based on menu translations

1.2.3 (2023.09.11)

  • Fix: Edit/add conditions not showing for Taxonomy tab

1.2.2 (2023.07.21)

  • Fix: Setting conditions when there are lots of posts causes server error

1.2.1 (2023.05.23)

  • Fix: XSS issue

1.2.0 (2022.02.25)

  • New: Option to set condition for post type archive

1.1.9 (2020.12.11)

  • Fix: Compatibility with PHP 8