fix: failure to config nav resulted in an error

pull/287/head
Seaton Jiang 2020-08-09 14:51:55 +08:00
parent b0301b3329
commit 340581299f
No known key found for this signature in database
GPG Key ID: FC3D886E252D902B
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@
<span class="line third-line"></span> <span class="line third-line"></span>
</button> </button>
<?php } <?php }
if ( has_nav_menu('header_menu') ) {
wp_nav_menu( array( wp_nav_menu( array(
'theme_location' => 'header_menu', 'theme_location' => 'header_menu',
'depth' => 2, 'depth' => 2,
@ -51,6 +52,7 @@
'menu_class' => 'navbar-nav ml-auto', 'menu_class' => 'navbar-nav ml-auto',
'walker' => new WP_Bootstrap_Navwalker(), 'walker' => new WP_Bootstrap_Navwalker(),
) ); ) );
}
?> ?>
</div> </div>
</nav> </nav>