Site logo

Archived topic

primary nav is duplicated in code when placed in sidebar

5 replies · Started by morriscountynj on March 26, 2018

Viewing posts 1–6 of 6

I'm working on a new site - for this one, I decided to place the navigation in the left sidebar.

However, when I go to inspect the code, I notice something strange. The navigation (<nav id="site-navigation">) shows up in TWO places in the code: both after the header, AND within

.

Screenshot (see the two highlighted areas):
https://drive.google.com/file/d/1gOY7GVaQURVwVz_Jy_6XxWmS09RKPZGl/view?usp=sharing

I tried disabling menu plus, my child theme, and GP premium, but this is still happening.

This is a big issue for accessibility. Screen reader users would be very confused with two identical menus showing up in code, even if you only SEE one visually on the screen.

At minimum, I need to be able to add aria-label="Duplicate Menu" or "Mobile Menu" or the like to the one that appears below <header>.

Can you help me achieve this? I'll edit the javascript or whatever I need to do to make this work.

woo that's awesome! when are you going to push that out? should i just add it myself to the parent theme for the time being?

First half of April. You can absolutely add it yourself for now :)

awesome, thank you :)

No problem! Thank you!

This archived topic is closed to new replies.