After all of the discussion about trying to restore the older Bootstrap friendly Navwalker from older versions of Roots/Sage, I went ahead and made a small plugin called Sagextras to help bring it back. And I grew it a bit. It works the same way Soil does. Put a add_theme_support('se-feature'); in your lib/config.php and it will load the necessary feature.
Right now it has an implementation of the Navwalker from Roots 7.0.3 and also a return of the Bootstrap friendly gallery shortcode from the 7.x branch. Iâve tested this in a few installs.
Please, clone it, install it, try it out. Send in issues, send in pull requests if you see something terribly wrong. Maybe you can help me refactor this code to use namespaces like Sage and Soil do now.
Right now itâs only in the GitHub repo. Once Iâm sure itâs stable enough to use, Iâll register it on Packagist so it can be installed via Composer.
I did this because it might be helpful to a lot of you, so I look forward to you guys helping out.
I think that this plugin is stable-ish enough to be put out via Composer. Itâs been published to packagist as storm2k/sagextras. The dev-master will pull in the latest commits.
Sageâs implementation (which is what this plugin uses) only goes 1 level deep, so the plugin will only go that far as well. This was only about bringing back a Bootstrap-specific piece of Sage as the main theme moves to a platform agnostic setup.
I just began a new project using the latest version of Sage. I installed Sagextras and followed documentation for getting Bootstrapâs gallery functionality working. But itâs not affecting the gallery markup, and thus isnât formatting it accordingly. Any insights?
Hi @romero2k,
Iâm using the latest version of Sage and tried your plugin to get the âoldâ Bootstrap Nav Walker back. But the Walker isnât being used automatically for the nav. No other plugins installed except Soil.
What I did:
installed the plugin (cloned latest from Git) and activated it
added âadd_theme_support(âse-nav-walkerâ);â to setup.php (since there is no config.php anymore)
removed the Soil Walker (//add_theme_support(âsoil-nav-walkerâ))
edited header.php like your Gist
But it seems like the walker-functionality isnât called at all. The output of the menu is just the default one. When enabling the Soil walker it strips the css classes, but when I disable it and enable yours again Iâm back at Wordpress defaults.
I also tried to call the walker manually in header.php but dont know how the âwalkerâ argument should be (tried things like ânew WalkerNavâ, ânew Sagextras_Nav_WalkerNavâ).
Most probably some recent change in Soil broke Sageextras one. It actually broke mine in soil-fertilizer (sageextras with sponsored work) too⌠Well, it could be not Soil update but something different, I yet donât know
Either me or @romero2k will probably tackle this in reasonable time.