Working with Less themes in WordPress
Now that we have support for Less in place, let's move on and take a look at the options available to use Less styles in our themes, either within our own creations, or as part of prebuilt themes available for sale or download via the Internet.
Converting themes to use Less
We now have the basis for a Less style sheet, to which we can start to add our converted styles. Hold on, I hear you ask, "If we're converting a theme such as TwentyFourteen
, where on earth do we start?"
It's a very good question. Within excess of 4200 lines in the current style sheet for this theme, it's easy to feel bewildered! However, all will begin to come clear if we follow two simple principles:
- Less allows us to break down our style ...
Get Learning Less.js now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.