Title: Highlight current menu item
Last modified: August 19, 2016

---

# Highlight current menu item

 *  [aaronmoodie](https://wordpress.org/support/users/aaronmoodie/)
 * (@aaronmoodie)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/highlight-current-menu-item/)
 * I’m currently trying to work out if it’s possible to add a `current-<custom>-
   ancestor` class to a menu item. The menu I am working with look like:
 * <menu>
    <menu item 1> <custom post cat 1 /> <custom post cat 2 /> <custom post
   cat 3 /> </menu item 1> <menu item 2> <custom post cat 4 /> </menu item 2> </
   menu>
 * this is working fine, except for that when I select a post from one of the `custom
   post cats` the `menu item` looses it’s `current-menu-ancestor` class, leaving
   only the `custom post cat` as current.
 * has anyone had this issue?

Viewing 1 replies (of 1 total)

 *  Thread Starter [aaronmoodie](https://wordpress.org/support/users/aaronmoodie/)
 * (@aaronmoodie)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/highlight-current-menu-item/#post-1670287)
 * I’ve removed the custom post types, and so am now just using normal posts and
   categories. I’m still having the same issue though. Once I select a post, the
   menu item is no longer highlighted as current.

Viewing 1 replies (of 1 total)

The topic ‘Highlight current menu item’ is closed to new replies.

## Tags

 * [custom posts](https://wordpress.org/support/topic-tag/custom-posts/)

 * 1 reply
 * 1 participant
 * Last reply from: [aaronmoodie](https://wordpress.org/support/users/aaronmoodie/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/highlight-current-menu-item/#post-1670287)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
