這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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

Features

  • 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.