'How do I add button to wordpress navbar walker menu?
I have created the theme and used the navbar walker menu in developing the dynamic menu and it's working well. Now, my question is, how do I add the button Login and signup to the navbar walker menu that is within the navbar loop not outside as I have done.
navbar walker menu Resources Navbar
<header id="header" class="fixed-top">
<div class="d-flex align-items-center justify-content-between">
<h1 class="logo"><a href="/"><?php if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo();
} ?></a></h1>
<!-- Uncomment below if you prefer to use an image logo -->
<!-- <a href="index.html" class="logo"><img src="assets/img/logo.png" alt="" class="img-fluid"></a>-->
<nav id="navbar" class="container navbar">
<?php
wp_nav_menu( array(
'theme_location' => 'Main',
'depth' => 2, // 1 = no dropdowns, 2 = with dropdowns.
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker(),
) );
?>
<a class="nav-link signin btn-outline-primary scrollto" href="#about">Login</a>
<a class="nav-link btn getstarted scrollto" href="#about">Sign Up</a>
<i class="bi bi-list mobile-nav-toggle"></i>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
