MWDelaney / sage-bootstrap4-navwalker

MIT License
73 stars 34 forks source link

Sage Bootstrap4 Navwalker not working on localhost on windows 10 #14

Open developerpaddy opened 5 years ago

developerpaddy commented 5 years ago

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.

huubl commented 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;
}
developerpaddy commented 5 years ago

I am extremely sorry, It is mistakenly got typed but I have removed the dots.

MWDelaney commented 5 years ago

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?

developerpaddy commented 5 years ago

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.

MWDelaney commented 5 years ago

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?

Stefano1992 commented 4 years ago

Having the same issue.