该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

JinMenu

描述

The Jin Menu adds onclick event in wordpress custom link menu item , so that you can use your javascript/jQuery code from wordpress menu.

  • Goto: Appearance > Menus

  • Select Menu

  • Add Menu Item of type Custom Links. Add Link Text , Leave URL Blank or Use #

  • Assign display location from menu settings

  • Save your menu

  • Goto: Appearance > Jin Menus

  • Select Your Menu on top

  • Select Menu Item

  • Add your javascript code in Javascript box

产品特点

  • Add Onclick In WordPress Custom Menu.

  • It uses its own menu to override the behaviour so there should be no conflict with other themes or plugins

Support & Bug Reports

For support and further information about the JinMenu plugin see the plugins homepage at Buffer Now.

Working Demo

屏幕截图

安装

If you have ever installed a WordPress plugin, then installation will be pretty easy:

  1. Download the JinMenu plugin archive and extract the files

  2. Copy the resulting jinMenu directory into /wp-content/plugins/

  3. Activate the plugin through the ‘Plugins’ menu of WordPress

For support and further information about the JinMenu plugin see the plugins homepage at BufferNow.

常见问题

Where do I get support and further information

For support and further information about the JinMenu plugin see the plugins homepage at BufferNow.

评价

2020 年 5 月 20 日
What the plugin provides is not very complicated. It adds fields to menu items, where you can simply copy-paste your code. But before that, you need to know what you’re doing in terms of working with Javascript/jQuery. So, before you use the plugin, make sure you know how to set up such a Javascript event. Otherwise, you won’t know what to do with this tool.
2017 年 7 月 19 日
It only works if you have checked the check that it is “Primary Navigation”. If your web has multiple menus it does not work in others menus.
阅读所有27条评价

贡献者及开发者

「JinMenu」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「JinMenu」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

3.2.1

  • minor bug fix

3.2.0

  • Remove nav_menu_walker completly to support all plugins and themes

  • remove extra space in menu items

  • add notification upon saving menu

3.1.0

  • fix bug in menu item class for long menu name

3.0.0

  • Compatible with WordPress 4.4

  • Comes with no conflict mode

  • If Walker_Nav_Menu filter using by another plugin theme enable No conflict mode

  • New panel to add javascript if theme and plugin conflicting.

2.0.0

  • Compatible with WordPress 4.4

  • Multi Execution issue fixed

  • No Need to add # in menu url

1.2.1

  • Plugin Panel Removed

  • No extra js ,CSS

  • Textbox replaced with multiline textarea

  • Option will appear only on custom menu

  • compatibility with WordPress 3.8.1.

1.1.1

  • compatibility with WordPress 4.2.2

  • fix multi execution if multiple menu

1.2.1

  • Plugin Panel Removed

  • No extra js ,CSS

  • Textbox replaced with multiline textarea

  • Option will appear only on custom menu

  • compatibility with WordPress 3.8.1.

1.1.1

  • jQuery bug fix

  • Remove unnecessary js and css

  • Increase performance

  • compatibility with WordPress 3..2.

1.1.0

  • css bug fix

  • js on footer bug fix

  • Added option to insert javascript function directly from wordpress menu

  • auto load jquery if not loaded in theme.

1.0

  • Initial public release.