Sagextras #9 in Theme Tools
Put some Bootstrap-specific extras back into Sage
★ 26stars
434composer installs
6forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/storm2k/sagextras/archive/refs/heads/master.zipAlso on Packagist as storm2k/sagextras:
composer require storm2k/sagextrasFrom the readme
Sagextras
A tiny WordPress plugin that restores some Bootstrap specific functionality to the Sage theme. This plugin is modularlized just like Soil, so you only need to load the things you actually need. Add the neccessary lines to your lib/setup.php and the functionality will be there.
Modules
Restore the Roots Bootstrap Navwalker
addthemesupport('se-nav-walker');
REMINDER!!! You need to go into templates/header.php and replace the menu code with the code contained in this Gist so the menu works properly.
~~ Bootstrap friendly Gallery code
addthemesupport('se-gallery');~~
Please Note: With the release of Sage 8.3.0, this doesn't work anymore because Sage now uses WordPress's standard HTML5 gallery codes.
Support
Please feel free to open an issue if you run into problems.
Contributions
I welcome all ideas and support on how to make this better for everyone. Pull requests are more than welcome. Please take a look at the contributing file for coding standards and some testing.
(A big thanks to everyone who has contributed thusfar, especially johnny-bit, who has done a lot of work cleaning up the code and bringing it up to par for standards!)
ToDo
- NavWalker uses c
Read the full README on GitHub →