Open developerpaddy opened 5 years ago
Remove the dots: ...
public function primarymenu() {
$args = array(
'theme_location' => 'primary_navigation',
'menu_class' => 'navbar-nav',
'walker' => new \App\wp_bootstrap4_navwalker(),
);
return $args;
}
I am extremely sorry, It is mistakenly got typed but I have removed the dots.
Can you inspect the menus and see if the Bootstrap classes are being applied?
Can you check that your menu is be named primary_navigation
and that a menu is attached to that location in the WordPress admin?
Thanks for prompt reply, I really appreciate your efforts.
I inspected the code and it is default menu style without any bootstrap styling and structure.
I have named menu primary_navigation
and it is also attached in admin, it is the same which gives menu item on frontend without bootstrap.
Is WP_DEBUG enabled? Will you be able to see errors if there are any present?
Can you try without controller (see README for details) to eliminate Controller as the issue?
Having the same issue.
I tried all the instruction given
composer require "mwdelaney/sage-bootstrap4-navwalker"
in App.php file ` /**
{!! wp_nav_menu($primarymenu) !!}
Still, it won't work. It event not giving any error but the menu is still without any bootstrap styling.
Please help me I am using sage 9 for the first time I am not able to work without the menu.