Starter theme for WordPress with Bootstrap and Fontawesome. Requires WordPress 4.3+
This theme use Nodejs to compile and minify LESS, CSS, JS.
- Download and install NodeJS https://nodejs.org/
- Open shell and navigate to the theme folder
- Execute command 'npm install'
Now, any time you're gonna edit the theme CSS and JS files, activate grunt:
- Open shell and navigate to the theme folder
- Use command 'grunt watch'
- Done! Whenever a CSS, LESS or JS file is saved it will compile everything.
You can also use extensions for your code editor that will automatically activate Grunt.
Using Grunt we can keep all CSS of theme in a single file, as well the JS.
- It will compile the assets/less/theme.less file along any .css file saved on assets/less/src folder in the single assets/css/final.css
- It will minify any .css file saved on folder assets/css/ (ignoring .min.css files)
- It will unify and minify any .js file saved on folder assets/js/ and assets/js/src/ in the single assets/js/final.min.js
- I'm using the default version Bootstrap without Glyphicons.
- Replace the bootstrap.js on assets/js/src/
- Replace the boostrap.css on assets/less/src/
- Save the theme.less file (with Grunt active) to compile and unify the new files.
- I'm using the default version of Font Awesome.
- Replace the font-awesome.css on assets/less/src/
- Replace the fonts files on assets/fonts/
- Save the theme.less file (with Grunt active) to compile and unify the new files.