Title: Menu-item-ancestor
Author: valentinas
Published: <strong>August 1, 2010</strong>
Last modified: August 23, 2010

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/menu-item-ancestor.svg)

# Menu-item-ancestor

 By [valentinas](https://profiles.wordpress.org/valentinas/)

[Download](https://downloads.wordpress.org/plugin/menu-item-ancestor.1.1.zip)

 * [Details](https://wordpress.org/plugins/menu-item-ancestor/#description)
 * [Reviews](https://wordpress.org/plugins/menu-item-ancestor/#reviews)
 *  [Installation](https://wordpress.org/plugins/menu-item-ancestor/#installation)
 * [Development](https://wordpress.org/plugins/menu-item-ancestor/#developers)

 [Support](https://wordpress.org/support/plugin/menu-item-ancestor/)

## Description

This plugin is for developers and designers who want to have a separate class for
menu items with children.

This plugin adds a menu-item-ancestor class to every menu item that has descendants.

Alows to use CSS to style only those menu items, that has descendants. For example
you can add different background or different hover behavior.

## Installation

 1. Upload `menu-item-ancestor` folder or `menu-item-ancestor.php` file to the `/wp-
    content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use CSS menu-item-ancestor class to select and style menu items that have descendants

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Menu-item-ancestor” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ valentinas ](https://profiles.wordpress.org/valentinas/)

[Translate “Menu-item-ancestor” into your language.](https://translate.wordpress.org/projects/wp-plugins/menu-item-ancestor)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/menu-item-ancestor/),
check out the [SVN repository](https://plugins.svn.wordpress.org/menu-item-ancestor/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/menu-item-ancestor/)
by [RSS](https://plugins.trac.wordpress.org/log/menu-item-ancestor/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1

 * Fixed the menu logic. The first version wrongly asumed that menu item stored 
   it’s parent in posts table, when it’s actually is stored in postmeta table.

#### 1.0

 * Big bang. Time starts.

## Meta

 *  Version **1.1**
 *  Last updated **16 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **3.0.5**
 * Tags
 * [ancestor](https://wordpress.org/plugins/tags/ancestor/)[css](https://wordpress.org/plugins/tags/css/)
   [menu](https://wordpress.org/plugins/tags/menu/)
 *  [Advanced View](https://wordpress.org/plugins/menu-item-ancestor/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/menu-item-ancestor/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/menu-item-ancestor/reviews/)

## Contributors

 *   [ valentinas ](https://profiles.wordpress.org/valentinas/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/menu-item-ancestor/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=v%2ebakaitis%40gmail%2ecom&lc=LT&item_name=menu-item-ancestor&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)