Primary Navigation always occupies space
-
If a menu is not assigned as a Primary Navigation, some space will still be taken up by the html generated.
If no Primary Navigation has been assigned, Virtue still emits
<div class="... kad-header-right"><nav id="nav-main" ...></nav></div>
and it will occupy (at least) 1 pixel.In header.php, the test for
has_nav_menu('primary_navigation')
on line 70 could be moved to line 66, and then the<div><nav></nav></div>
wouldn’t be emitted and no space would be taken up by a non-existent primary navigation.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Primary Navigation always occupies space’ is closed to new replies.