Book Image

Less Web Development Cookbook

Book Image

Less Web Development Cookbook

Overview of this book

Table of Contents (19 chapters)
Less Web Development Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Customizing Roots.io with Less


Roots is a WordPress starter theme that helps you to make better themes with HTML5 Boilerplate, Bootstrap, and Grunt. You can use a starter theme to build your own WordPress theme.

After installing the Roots theme and visiting your website, you will probably recognize the top navigation bar. Roots uses Bootstrap's default navigation bar. You can read more about Bootstrap in Chapter 10, Less and WordPress of this book. In this recipe, you will customize the navigation bar of the Roots theme.

Getting ready

You can download the Roots theme from https://github.com/roots/roots. Download and unzip this file into the wordpress/wp-content/themes directory of your WordPress installation, or alternatively, follow the ensuing steps.

To install the Roots theme, you should run the following commands in your console. Run these commands in the wordpress/wp-content/themes directory of your WordPress installation:

git clone [email protected]:roots/roots.git
npm install
grunt build...