Display main menu
This commit is contained in:
parent
2ae21aa31e
commit
c7e427d866
|
@ -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 () {
|
|||
)
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -8,12 +8,20 @@
|
|||
<body class="font-sans bg-white text-gray-900 leading-normal antialiased">
|
||||
<div class="max-w-5xl 2xl:max-w-6xl mx-auto px-4">
|
||||
<header class="mt-16 mb-24">
|
||||
<div>
|
||||
<p class="text-2xl">
|
||||
<a href="<?php echo esc_url(home_url( '/' )); ?>" class="text-black hover:text-gray-800">
|
||||
<a href="<?php echo esc_url(home_url( '/' )); ?>" class="text-black hover:text-gray-800 hover:underline_">
|
||||
<?php bloginfo('slogan'); ?>
|
||||
</a>
|
||||
<span class="font-serif font-thin text-gray-700">
|
||||
— <?php bloginfo('description'); ?>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php if (has_nav_menu('menu-1')): ?>
|
||||
<nav>
|
||||
<?php wp_nav_menu() ?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
</header>
|
||||
|
|
Loading…
Reference in a new issue