Closed ardiewen closed 4 years ago
Hi there,
I'm following the updated instructions and running into the exact same issue as described in #1.
My local environment configuration is Trellis + Bedrock + Sage per the roots.io documentation. The staging site is a relatively new and clean setup.
Steps to replicate:
composer require "mwdelaney/sage-bootstrap4-navwalker"
<div class="collapse navbar-collapse justify-content-end" id="navbarToggler"> @if (has_nav_menu('primary_navigation')) {!! wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'navbar-nav', 'walker' => new \App\wp_bootstrap4_navwalker()]) !!} @endif </div>
Tried the following:
<?php namespace App; ?>
<?php namespace App\Controllers; use Sober\Controller\Controller; class App extends Controller { ... /** * Primary Nav Menu arguments * @return array */ public function primarymenu() { $args = array( 'theme_location' => 'primary_navigation', 'menu_class' => 'navbar-nav', 'walker' => new \App\wp_bootstrap4_navwalker(), ); return $args; } }
@if (has_nav_menu('primary_navigation')) {!! wp_nav_menu($primarymenu) !!} @endif
Any insights on how to better troubleshoot this would be greatly appreciated. Thanks!
Hi there,
I'm following the updated instructions and running into the exact same issue as described in #1.
My local environment configuration is Trellis + Bedrock + Sage per the roots.io documentation. The staging site is a relatively new and clean setup.
Steps to replicate:
composer require "mwdelaney/sage-bootstrap4-navwalker"
in my theme folderTried the following:
<?php namespace App; ?>
to the top of header.blade.php with no luckAny insights on how to better troubleshoot this would be greatly appreciated. Thanks!