Reputation
Top tag
Next privilege 10 Rep.
Answer protected questions
Badges
2
Newest
 Student
Impact
~236 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Sep
14
comment Update body class based on menu
@CharlesClarkson The menu is fixed/sticky at the top of the page. On pages where there is either a child menu, or is a child page, the sub menu (level 2) is visible. So i need/want to add a class to the body, so I can move the content down via CSS so the fixed menu doesn't overlap. I was hoping to find a non-js solution.
Sep
13
comment Update body class based on menu
@G.M. you're totally right, I need to hook into the menu before the body tag is called.