Add menu to theme in WordPress

“header-menu” is the name of the menu. You can get that name in the Appearance / Menus section, or create a new one, or rename the default menu.

<?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>

Thank you for reading!

It's only fair to share...Tweet about this on Twitter
Twitter
Share on Facebook
Facebook
Email this to someone
email