[wp-testers] current-menu-item added to all Custom Links

Andrew Nacin wp at andrewnacin.com
Thu May 6 22:05:27 UTC 2010


On Thu, May 6, 2010 at 5:50 PM, James Laws <jamielaws at gmail.com> wrote:

> I'm not sure if this has been addressed or fixed but I've noticed that when
> using the Menu builder that all custom links have the class
> "current-menu-item" added.


It does a URL comparison. So if you added mysite.com/blog/, and you're on
mysite.com/blog/, then it gets current-menu-item. If you link to google.com,
that link won't get current-menu-item.

On Thu, May 6, 2010 at 5:52 PM, Andrew Johnson <andrew at aequ.com> wrote:

> That's been fixed, but I can't get it to show "current-page-item-parent" or
> something similar to style the parent navigation to a sub-page either. Is
> this doable?


There is a ticket open related to ancestor classes. I think it is waiting on
another bug to be fixed.


More information about the wp-testers mailing list