Описание
This plugin only works under the following conditions:
1. the theme has registered at least one menu location
2. user has created at least one custom menu with one or more
menu items.
3. user has selected which menu location the plugin should work on
in the Settings -> Zen Menu Logic options page
4. This plugin currently does not support a website that uses a plugin to
change the language of the site to something other than English. This might
change in the future.
5. Oftentimes themes have their own code that effects how menus work, specially
when it comes to mobile. Therefore, this plugin may not work with your theme.
If those 3 conditions are met, then the edit page for every page and post
and custom post type will contain a meta box listing the custom menus with
radio buttons. All you need do is select which custom menu should display
when that page is called.
Установка
- Unzip the download package
- Upload
zen-menu-logic
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to the Zen Menu Logic options page in the Setting’s menu
and select which menu location is the one that the plugin will
work on.
alternatively
- upload the zip file from the Admin plugins page
- then activate
- Go to the Zen Menu Logic options page in the Setting’s menu
and select which menu location is the one that the plugin will
work on.
Часто задаваемые вопросы
- Installation Instructions
-
- Unzip the download package
- Upload
zen-menu-logic
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to the Zen Menu Logic options page in the Setting’s menu
and select which menu location is the one that the plugin will
work on.
alternatively
- upload the zip file from the Admin plugins page
- then activate
- Go to the Zen Menu Logic options page in the Setting’s menu
and select which menu location is the one that the plugin will
work on.
Отзывы
Участники и разработчики
«Zen Menu Logic» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
УчастникиПеревести «Zen Menu Logic» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
1.6
- Fixed bug that was causing non object error when custom post types exist
1.5
- Changed constructor to php 7 style
1.4
- Fixed bug in saving logic. Tested in WP 3.6
1.3
- Added uninstall functionality to delete option used by plugin
1.21
- Changed the text in the options panel.
1.2
- There is a design flaw in v1.1 where I assumed that the name of the primary menu location
- was primary. That is the way it is in the 2011 theme. But not all themes are like that.
- So this new version has an options page as a menu item of the Settings Menu that lists all
- the menu locations by name. And you need to select which one is the primary, or, in other
- words, which menu location the menu logic will work on. Please let me know if there are
- any questions.
1.1
- simplify code that tests is this plugin is supported by the theme
- replace code that implemented the change in menu to use the wp_nav_menu_args filter
1.0
- write menu logic code