Child Theme Project: https://github.com/holger1411/understrap-child
I’m a huge fan of Underscores, Bootstrap, and Sass. Why not combine these into a solid WordPress Theme Framework? That’s what UnderStrap is. You can use it as starter theme and build your own theme on top of it. Or you use it as parent theme and create your own child theme for UnderStrap.
UnderStrap WordPress Theme, Copyright 2013-2017 Holger Koenemann UnderStrap is distributed under the terms of the GNU GPL version 2
The _s theme is a good starting point to develop a WordPress theme. But it is “just” a raw starter theme. That means it outputs all the WordPress stuff correctly but without any layout or design. Why not add a well known and supported layout framework to have a solid, clean and responsive foundation? That’s where Bootstrap comes in.
Some basics about the Sass and CSS files that come with UnderStrap:
The theme itself uses the
/style.cssfile just to identify the theme inside of WordPress. The file is not loaded by the theme and does not include any styles.
/css/theme.css and its minified little brother
/css/theme.min.css file(s) provides all styles. It is composed of five different SCSS sets and one variable file at
- 1 "theme/theme_variables"; // <--------- Add your variables into this file. Also add variables to overwrite Bootstrap or UnderStrap variables here - 2 "../src/bootstrap-sass/assets/stylesheets/bootstrap"; // <--------- All the Bootstrap stuff - Don´t edit this! - 3 "understrap/understrap"; // <--------- Some basic WordPress stylings and needed styles to combine Boostrap and Underscores - 4 "../src/fontawesome/scss/font-awesome"; // <--------- Font Awesome Icon styles // Any additional imported files // - 5 "theme/theme"; // <--------- Add your styles into this file
Don’t edit the files no. 2-4 files/filesets or you won’t be able to update it without overwriting your own work!
Your design goes into:
/sass/theme. Add your styles to the
/sass/theme/_theme.scss file and your variables to the
/sass/theme/_theme_variables.scss. Or add other .scss files into it and
@import it into
npm install understrap
$ npm install
To work and compile your Sass files on the fly start:
$ gulp watch
Or, to run with Browser-Sync:
/gulpfile.jsin the beginning of the file:
var browserSyncOptions =proxy: "localhost/theme_test/" // <----- CHANGE HEREnotify: false;
$ gulp watch-bs
The front-page slider is widget driven. Simply add more than one widget to widget position “Hero”.
Just add a new file to the themes root folder called rtl.css. Add all alignments to this file according to this description: https://codex.wordpress.org/Right_to_Left_Language_Support
blank.php template is useful when working with various page builders and can be used as a starting blank canvas.
empty.php template displays a header and a footer only. A good starting point for landing pages.
fullwidthpage.php template has full width layout without a sidebar.
 Visit http://browsersync.io for more information on Browser Sync