이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Extra Classes

설명

Add missing classes

Adds missing classes for selected menu states. Classes added include:

  • current-page-parent and current_page_parent
  • current-page-ancestor and current_page_ancestor
  • current-menu-ancestor
  • current-menu-parent

The classes are added in the following scenarios:

  • When viewing an attachment page classes are added to any parent pages and their menu ancestors.
  • When viewing a post classes are added to any relevant taxonomy menu items and their manu ancestors.

Manage Menu Select States

Allows you to control which menu items should be selected (or deselected) when viewing certain pages of your site. You need to add classes to the menu items for this to work.

  • ecms-archive-{$post_type} – Select menu item when viewing a post type archive page.
  • ecms-single-{$post_type} – Select menu item when viewing a single post type page.
  • ecms-taxonomy-{$taxonomy} – Select menu item when viewing a taxonomy archive.
  • ecms-taxonomy-{$taxonomy}-term-{$term} – Select menu item when viewing a taxonomy term archive.
  • ecms-404 – Select menu item when viewing a 404 page.

  • ecms-no-archive-{$post_type} – Deselect menu item when viewing a post type archive page.

  • ecms-no-single-{$post_type} – Deselect menu item when viewing a single post type page.
  • ecms-no-taxonomy-{$taxonomy} – Deselect menu item when viewing a taxonomy archive.
  • ecms-no-taxonomy-{$taxonomy}-term-{$term} – Deselect menu item when viewing a taxonomy term archive.
  • ecms-no-404 – Deselect menu item when viewing a 404 page.

설치

To install and configure this plugin…

  1. Upload or install the plugin through your WordPress admin.
  2. Activate the plugin via the ‘Plugins’ admin menu.
  3. No configuration neccessary.

Upgrading

If you are upgrading manually via FTP rather that through the WordPress automatic upgrade link, please de-activate and re-activate the plugin to ensure the plugin upgrades correctly.

FAQ

Where can I report bugs and issues?

Please log issues and bugs on the plugin’s GitHub page.
You can also submit suggested enhancements if you like.

How can I contribute?

If you can, please fork the code and submit a pull request via GitHub. If you’re not comfortable using Git, then please just submit it to the issues link above.

후기

모든 3 평가 읽기

기여자 & 개발자

“Extra Classes”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Extra Classes”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

0.3.1

Fix issue where menu selected states were not inherited correctly for non-404 pages.

0.3

Added Menu Selector support for ‘ecms-404’ and ‘ecms-no-404’ classes.

0.2

Added Menu Selector class.
Add menus module and ‘extraclasses_menu_item_class’ filter for easier filtering of menu item classes.
Restructure include files for modules.

0.1

First release (beta).