Title: Extra Classes
Author: Ben Huson
Published: <strong>11 ກຸມພາ 2013</strong>
Last modified: 23 ເມສາ 2015

---

ຄົ້ນຫາປລັກອິນ

![](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://lo.wordpress.org/plugins/extra-classes/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/extra-classes/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/extra-classes/#installation)
 * [ການພັດທະນາ](https://lo.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.

## ຄຳຖາມທີ່ພົບເລື້ອຍ

  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/) 7 ຕຸລາ 2016

Love this plugin. Thanks :))

 [ ອ່ານການຣີວິວທັງໝົດ 3 ລາຍການ ](https://wordpress.org/support/plugin/extra-classes/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Extra Classes” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການ
ພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ 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).

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **0.3.1**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **11 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **30+**
 *  ເວີຊັນ WordPress ** 3.7 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **4.2.39**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/extra-classes/)
 * ແທັກ
 * [class](https://lo.wordpress.org/plugins/tags/class/)[classes](https://lo.wordpress.org/plugins/tags/classes/)
   [css](https://lo.wordpress.org/plugins/tags/css/)[menu](https://lo.wordpress.org/plugins/tags/menu/)
   [styles](https://lo.wordpress.org/plugins/tags/styles/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/extra-classes/advanced/)

## ການໃຫ້ຄະແນນ

 5 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 3 ລາຍການ     ](https://wordpress.org/support/plugin/extra-classes/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/extra-classes/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/extra-classes/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/extra-classes/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 0 ລາຍການ     ](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/)