Sage WordPress starter theme without Bootstrap.
- Framework-free, Bootstrap has been completely removed
- WordPress Generated Classes have been re-added from the Codex (see here for more info)
-
Clone the official Sage repo:
https://github.com/roots/sage.git <theme_name>
-
Edit bower.json, remove all Bootstrap-related depedencies and overrides; the modifed file should look as follows:
{ "name": "sage", "homepage": "https://roots.io/sage/", "authors": [ "Ben Word <ben@benword.com>" ], "license": "MIT", "private": true, "dependencies": { }, "overrides": { } }
-
Blank out the contents of the following files, do not delete the files themselves:
- assets/styles/_variables.scss
- assets/styles/_comments.scss
- assets/styles/_forms.scss
- assets/styles/_grid.scss
- assets/styles/_wp-classes.scss
-
Re-add the WordPress Generated Classes from the WordPress Codex to the following file:
- assets/styles/_wp-classes.scss
-
Run
bower prune
andgulp
in the theme's root directory -
The following line should have automatically been removed from <theme_root>/assets/styles/main.scss:
@import "../../bower_components/bootstrap-sass/assets/stylesheets/_bootstrap.scss";
The code block should now read:
// Automatically injected Bower dependencies via wiredep (never manually edit this block) // bower:scss // endbower
Sage documentation is available at https://roots.io/sage/docs/.