I'm having trouble getting the "Menu" or "Navigation Menu" to appear in the header.
The code in header.php
<header>
<?php if ( !is_front_page() ) : ?>
<nav role="navigation" class="site-navigation main-navigation">
<h1 class="assistive-text"><?php _e( 'Menu', 'underscoresme' ); ?></h1>
<div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'underscoresme' ); ?>"><?php _e( 'Skip to content', 'underscoresme' ); ?></a></div>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- .site-navigation .main-navigation -->
<?php endif; ?>
</header>
Menu configuration in the dashboard
Live customization
It simply doesn't want to appear. There is no <nav>
when inspecting in dev tools. I didn't changed anything in functions.php
or any other file that contains PHP
code that is used to make the theme work. I want to use Bootstrap's navigation menu.
karnopedia.com is the site.