Need help with understrap-child?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

494 Stars 285 Forks GNU General Public License v3.0 249 Commits 6 Opened issues


The starter child theme for Understrap, the renowned open-source WordPress starter theme.

Services available


Need anything else?

Contributors list


Basic Child Theme for Understrap Theme Framework:

How it works

Understrap Child Theme shares with the parent theme all PHP files and adds its own functions.php on top of the Understrap parent theme's functions.php.

IT DOES NOT LOAD THE PARENT THEMES CSS FILE(S)! Instead it uses the Understrap Parent Theme as a dependency via npm and compiles its own CSS file from it.

Understrap Child Theme uses the Enqueue method to load and sort the CSS file the right way instead of the old @import method.


  1. Install the parent theme Understrap first:
    • IMPORTANT: If you download Understrap from GitHub make sure you rename the "" file to "" or you might have problems using this child theme!
  2. Upload the understrap-child folder to your wp-content/themes directory
  3. Go into your WP admin backend
  4. Go to "Appearance -> Themes"
  5. Activate the Understrap Child theme


Add your own CSS styles to

or import you own files into

To overwrite Bootstrap's or Understrap's base variables just add your own value to:


For example, the "$primary" variable is used by both Bootstrap and Understrap.

Add your own color like:

$primary: #ff6600;
to overwrite it. This change will automatically apply to all elements that use the $brand-primary variable.

It will be outputted into:


So you have one clean CSS file at the end and just one request.

Add your own JS to

to have it bundled into
. If you'd like to add additional files, you'll need to add the filenames to the Rollup.js config file:

Developing With NPM, postCSS, Rollup, SASS and BrowserSync

This theme uses sass and postCSS to handle compiling all of the styles into one style sheet. The theme also includes rollup.js to handle javascript compilation and minification. These choices are based on the same libraries and npm commands used in Bootstrap. In addition, it comes with BrowserSync to handle live reloading while you develop.

Confused by All the CSS, SCSS, and SASS Files?

Some basics about the files that come with Understrap: - The theme itself uses the

file only to identify the theme inside of WordPress. The file is not loaded by the theme and does not include any styles. - The
and its minified little brother
file(s) provides all styles. It is composed of different SCSS sets and one variable file, all imported at
- Your design goes into:
. - Override Bootstrap by adding your variables to the
- Add your custom styles to the
file - Or add other .scss files into it and
it into

The same goes for Javascript. Just add your javascript to

and let rollup.js handle the rest.

Installing Dependencies

  • Make sure you have installed Node.js and BrowserSync on your computer globally
  • Open your terminal and browse to the location of your Understrap copy
  • Run:
    $ npm install


To work and compile your Sass files on the fly start:

npm run watch

Or, to run with BrowserSync:

First change the browser-sync options to reflect your environment in the file

in the beginning of the file:
module.exports = {
    "proxy": "localhost/",
    "notify": false,
    "files": ["./css/*.min.css", "./js/*.min.js", "./**/*.php"]

then run:

npm run watch-bs

Bootstrap 4 Support

This child theme uses Bootstrap 5 and requires Understrap Parent Theme 1.1 or greater for best functionality. It does not create JS or CSS files that work with Bootstrap 4 markup. In fact, in the

file, this child theme overrides the parent theme's customizer settings.

If you want to build a child theme with Bootstrap 4, please use the 1.0.1 child theme release as it was the last version built to support Bootstrap 4.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.