這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WPXP Clean Navigation Links

外掛說明

This plugin keeps the HTML of your navigation menu links clean by removing extraneous CSS classes from the each list item. Those classes are simply replaced by the target page’s slug (e.g. class=”home”).

The current page’s list item is given an additional “current-menu-item” so it can be highlighted. It that page is a submenu item, then its parent is is also given an additional “current-menu-parent” class you can use in your theme’s style to highlight it as well.

In case AJAX is used to download the selected page, your JavaScript code can read the “data-id” or “data-slug” attribute to fetch that record from the server.

Settings

Once the plugin is active, no additional settings needed.

螢幕擷圖

  • Before: default HTML of navigation menu
  • After: HTML of Navigation menu after “WPXP Clean Navigation Links” is active

安裝方式

  1. Install the plugin to your WordPress website
  2. Activate the plugin

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈WPXP Clean Navigation Links〉的開發相關工作。

參與者

將〈WPXP Clean Navigation Links〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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