[wp-trac] [WordPress Trac] #14844: wp_nav_menu producing unexpected results
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 11 04:18:43 UTC 2010
#14844: wp_nav_menu producing unexpected results
--------------------------+-------------------------------------------------
Reporter: holypixel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.0.1
Severity: normal | Keywords: wp_nav_menu, current-menu-item
--------------------------+-------------------------------------------------
My question may be irrelevant, as I am somewhat new to wordpress and the
wp_nav_menu system, however I am having a few issues with something...
If I add the same page (child) to multiple parents, wordpress will create
a css class called current-menu-item, which is as expected, however it
will add that class to all of the instances of that child. For example:
PARENT 1 --- PARENT 2 --- PARENT 3
ITEM A ----- ITEM B ----- ITEM C
ITEM D ----- ITEM D ----- ITEM F
ITEM G ----- ITEM H ----- ITEM I
Item D, under both parent 1 and parent 2 will have the css class current-
menu-item. This appears to be incorrect, as they are both differnt menu
items. It also lists current-page-item for both, which is correct.
As such, it appears impossible to apply unique styling to the current page
parent if that page appears under multiple parents, as all of the parents
will receive the same style.
Is there a way around this?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14844>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list