Book Image

Learning less.js

Book Image

Learning less.js

Overview of this book

Table of Contents (22 chapters)
Learning Less.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding Less support using a plugin


Adding in code manually works perfectly well, but after a while it gets tedious. Surely we can make things easier using a plugin, right?

Absolutely, we can add support for Less using a plugin; there are several ways to achieve this, but my favorite has to be the plugin created by Justin Kopepasah and available for download from WordPress Plugin Directory at https://wordpress.org/plugins/less-theme-support/. Let's take a peek at how to use it; it's really easy to install:

  1. Start by navigating to https://wordpress.org/plugins/less-theme-support/ and then clicking on Download Version 1.0.2. When prompted to do so, save it into the plugins folder within our installation of WordPress.

  2. Browse to the Plugins area in WordPress' admin, then click on Upload and select less-theme-support.1.0.2.zip.

  3. Click on Install Now, then when prompted, click on Activate Plugin.

At this point, the plugin is now active and we need to tell our WordPress theme how to use it:

  1. If you have...