WPXP Clean Navigation Links
开发者 |
manjonka
|
更新时间 |
2019年2月20日 14:54 |
捐献地址: |
去捐款 |
PHP版本: |
5.2.4 及以上 |
WordPress版本: |
5.0.3 |
版权: |
GPLv2 or later |
详情介绍:
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.
安装:
- Install the plugin to your WordPress website
- Activate the plugin
屏幕截图: