Display main menu

This commit is contained in:
Oliver Davies 2019-05-08 20:56:12 +01:00
parent 2ae21aa31e
commit c7e427d866
2 changed files with 21 additions and 7 deletions

View file

@ -4,6 +4,13 @@ wp_enqueue_style( 'style', get_stylesheet_uri() );
// override the widget styles for sidebar-1
add_action('after_setup_theme', function () {
register_nav_menus(
array(
'menu-1' => __( 'Primary', 'twentynineteen_tailwindcss' ),
'footer' => __( 'Footer Menu', 'twentynineteen_tailwindcss' ),
'social' => __( 'Social Links Menu', 'twentynineteen_tailwindcss' ),
)
);
remove_action( 'widgets_init', 'twentynineteen_widgets_init' );
});
@ -19,4 +26,3 @@ add_action('widgets_init', function () {
)
);
});