Ahem... any Wordpress developer around these lands willing to get some knowledge on one of the lastest features this CMS has received?
So, today I was feeling like speaking about one specific topic that it's been around in Wordpress last year. It's a feature I've been using at work for the past year and a half before joining the RoR team, and it's something I kind of fell in love with (In terms of Wordpress development). So, allow me to introduce what WP Rig is, and why you should be implementing this in your projects. I promise this will be a short one.
If you are familiar with Wordpress development, you'll know that normally we tend to start a new website by creating a new theme from scratch. This requires quite a lot of effort normally, many things to do here (Performance, SEO, Design, Functionality, Plugins...) It'd sure be a relief to have some of these things already done, or at least, to have a more system to work with. This is where WP Rig helps us.
It is an open source project originally created by Morten Rand-Hendriksen with the support of LinkedIn Learning. It is an starter theme that includes many interesting functionalities, you may recognize some of them in the images below:
As their website states, WP Rig is:
A modern WordPress starter theme and build process bundled into one convenient package. It helps you create beautiful, lightning-fast WordPress themes with exciting user experiences that meet the latest web standards.
Sounds cool, I know, but, what does exactly Rig offers you?
- Minimal and beautiful templates
- Code and file structure optimized for modern performance standards
- Lazy loading images
- Well documented helper functions to make development easy going
- Gulp, who will serve you with BrowserSync, no need to F5 anymore, Babel, PostCSS, ESLint and WP Coding Standards
- Integrated with VS Code linters
- Progressive web app, responsive, and AMP ready
It's basically a 1-2-3, you just git clone the theme, a small config file to give your new theme a name and an author, VS code extension to add the linter...
And ta-da, your theme is now ready to be developed, you'll get a dev folder where you'll work, and every change you make here, will be compiled into your theme folder.
Now you just have to run the next command and, that's it, BrowserSync will be running, and all your files will be watched over. Then, you'll see what it is the first sketch of your awesome website.
npm run build
And that's it, I'm not going any further (yet).
I just want you to know that, if you are interested in this free starter theme, you can find its website at the bottom, as well as the github repository / wiki, and a complete free course on how to develop with this awesome starter theme.
I hope you liked it, and if so, don't forget to leave a comment saying what do you think about WP Rig. Also, you can follow, or just talk to me about this or any other of my posts through my Twitter.