wp_nav_menu producing unexpected results
|Reported by:||holypixel||Owned by:|
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?
Change History (8)
- Keywords reporter-feedback close added; wp_nav_menu current-menu-item removed