I’m in the process of moving a theme from an early version of sage to the newer version with Sass baked-in (was getting weird bootstrap padding anomalies on the manually sass-ported version I was working from).
Mostly works, but I’m getting weird errors related to the Sage nav walker.
Has the SageNavWalker been removed/changed? I’ve got a bunch of stuff built that hooks into the classes it generates, and don’t really want to refactor it all, so I’m hoping that I can get SageNavWalker working again.
Thanks @swalkinshaw — I’ll look at the source and see if I can get it working.
Re: the old navwalker: tried including the nav.php file from the old version of sage and it just throws function errors (namespacing problem? I’m new to the whole namespacing thing in php/sage, so there’s zero chance that I’m going to be able to shoehorn it back into a working state).
If one wanted to create his own custom NavWalker based on Soil’s new navwalker module, how would one go about extending the NavWalker class found in the Soil navwalker module? Currently I am trying with the following code and it is not able to find the class:
use Roots\Soil\Nav\NavWalker;
class Custom_NavWalker extends NavWalker {
}
Results in:
Fatal error: Class ‘Roots\Soil\Nav\NavWalker’ not found in /var/www/mk/public_html/app/themes/mk/lib/nav.php on line 5