Title: Extra Classes
Author: Ben Huson
Published: <strong>2013年2月11日</strong>
Last modified: 2015年4月23日

---

プラグインを検索

![](https://ps.w.org/extra-classes/assets/banner-772x250.png?rev=1036934)

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://ps.w.org/extra-classes/assets/icon-256x256.png?rev=1036934)

# Extra Classes

 作者: [Ben Huson](https://profiles.wordpress.org/husobj/)

[ダウンロード](https://downloads.wordpress.org/plugin/extra-classes.0.3.1.zip)

 * [詳細](https://ja.wordpress.org/plugins/extra-classes/#description)
 * [レビュー](https://ja.wordpress.org/plugins/extra-classes/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/extra-classes/#installation)
 * [開発](https://ja.wordpress.org/plugins/extra-classes/#developers)

 [サポート](https://wordpress.org/support/plugin/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](https://github.com/benhuson/extra-classes/issues).

You can also submit suggested enhancements if you like.

  How can I contribute?

If you can, please [fork the code](https://github.com/benhuson/extra-classes) and
submit a pull request via GitHub. If you’re not comfortable using Git, then please
just submit it to the issues link above.

## 評価

![](https://secure.gravatar.com/avatar/22e689a789d26657d7d3fae1873f9222d34c95046b8d0ade98e6a7d0bbca3a2c?
s=60&d=retro&r=g)

### 󠀁[Simple and effective](https://wordpress.org/support/topic/simple-and-effective-654/)󠁿

 [Mary](https://profiles.wordpress.org/marypop/) 2016年10月7日

Love this plugin. Thanks :))

 [ 3件のレビューをすべて表示 ](https://wordpress.org/support/plugin/extra-classes/reviews/)

## 貢献者と開発者

Extra Classes はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

 *   [ Ben Huson ](https://profiles.wordpress.org/husobj/)

[“Extra Classes” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/extra-classes)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/extra-classes/)するか、
[SVN リポジトリ](https://plugins.svn.wordpress.org/extra-classes/)をチェックする
か、[開発ログ](https://plugins.trac.wordpress.org/log/extra-classes/)を [RSS](https://plugins.trac.wordpress.org/log/extra-classes/?limit=100&mode=stop_on_copy&format=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).

## メタ

 *  バージョン **0.3.1**
 *  最終更新日 **11年前**
 *  有効インストール数 **30+**
 *  WordPress バージョン ** 3.7またはそれ以降 **
 *  検証済み最新バージョン: **4.2.39**
 *  言語
 * [English (US)](https://wordpress.org/plugins/extra-classes/)
 * タグ
 * [class](https://ja.wordpress.org/plugins/tags/class/)[classes](https://ja.wordpress.org/plugins/tags/classes/)
   [css](https://ja.wordpress.org/plugins/tags/css/)[menu](https://ja.wordpress.org/plugins/tags/menu/)
   [styles](https://ja.wordpress.org/plugins/tags/styles/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/extra-classes/advanced/)

## 評価

 5つ星中5つ星

 *  [  3 5-星レビュー     ](https://wordpress.org/support/plugin/extra-classes/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/extra-classes/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/extra-classes/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/extra-classes/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/extra-classes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/extra-classes/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/extra-classes/reviews/)

## 貢献者

 *   [ Ben Huson ](https://profiles.wordpress.org/husobj/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/extra-classes/)