Delete (not hide) any and all navigation menus, also from page source
-
I’m using Twenty Twenty to set up an Escape Room type website for colleagues. There’s a custom way to make your way through the website so I’ve hidden all navigation menus from the interface. But two of them with a full list of all pages on the website still show up in the page source for each page. I need to get rid of those but am at a loss as to how to get that done.
In the source the lists are preceded by the following respectively:
<nav class=”primary-menu-wrapper” aria-label=”Horizontal” role=”navigation”>
and
<nav class=”mobile-menu” aria-label=”Mobile” role=”navigation”>I’ve searched for references to these in the theme files but it’s hard to find a solution. I’ve commented out
– ‘function twentytwenty_menus()’ from functions.php
– ‘if ( has_nav_menu( ‘primary’ ) || ! has_nav_menu( ‘expanded’ ) )’ from header.php
– all contents from modal-menu.phpIt don’t do nuthin’
It doesn’t help that searching online is hard with almost every result showing how to hide menus not delete them. If someone can point me in the right direction that would be awesome!
- The topic ‘Delete (not hide) any and all navigation menus, also from page source’ is closed to new replies.