Default menus will appear on all pages with no issues. However, when I configure a custom menu, it is displayed on all pages, other than the home page//main blog page. The menu disappears, the tags remain there, just empty. All pages are using the same files (index.php, header.php, functions.php)
What am I missing?
Code in header.php here:
<nav class="primary-menu"><?php wp_nav_menu( array('theme_location' => 'primary') ); ?></nav>
<nav class="social-menu"><?php wp_nav_menu( array('theme_location' => 'social') ); ?></nav>
Code in functions.php:
function sl_register_nav_menu(){
register_nav_menus(
array(
'primary' => __( 'Primary Menu', 'textdomain' ),
'social' => __( 'Social Menu', 'textdomain')
)
);
}
add_action('after_setup_theme', 'sl_register_nav_menu');