Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
1 4
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Apr
29
awarded  Notable Question
Sep
24
awarded  Autobiographer
Jun
11
awarded  Student
Aug
12
awarded  Popular Question
Jan
23
comment When at / ( or “home”) my menu doesn't get a current-menu-item class
Got it. Thanks.
Jan
20
comment When at / ( or “home”) my menu doesn't get a current-menu-item class
thanks for the suggestion. it makes sense ... although it may be a complex thing to find if someone maintains the code later on.
Jan
20
comment When at / ( or “home”) my menu doesn't get a current-menu-item class
I understand that code. thank you for the suggestion. However I'll stick to wp_nav_menu as it's where I'm starting from.
Jan
20
comment When at / ( or “home”) my menu doesn't get a current-menu-item class
Hi Rob. I can't see "home" and "menu-item-47" as classes associated with "blog". Rather I only see, "menu-item menu-item-type-custom menu-item-object-custom menu-item-47". So, unless I'm missing something I don't think that CSS would target it. Sanchothefat's solution solves it though.
Jan
20
awarded  Scholar
Jan
20
accepted When at / ( or “home”) my menu doesn't get a current-menu-item class
Jan
20
comment When at / ( or “home”) my menu doesn't get a current-menu-item class
I can't believe it was that simple. Thank you for the tip.
Jan
20
asked When at / ( or “home”) my menu doesn't get a current-menu-item class