This is the final part of a 3 part series of articles/tutorials. The preceding two parts can be seen here: Part 1 – Basic Setup Part 2 – Creating Component-specific Stylesheets Part 3 – BrowserSync and Maximising Coverage Browsersync and Webpack dev Server Many of who have used task runners like Grunt or Gulp are …Continue reading
Tools
Incorporting Webpack into a WordPress theme (part 2)
This is part 2 of of a series of articles on setting up a new or pre-existing WordPress theme to use Webpack. Part 1 can be found here. Part 2 – Creating Component-specific stylesheets Components refer to encapsulated code containing its own style and functionality. Many Javascript frameworks including React and Vue make use of …Continue reading
Incorporting Webpack into a WordPress theme (part 1)
Webpack has been around for a few years now and has clear benefits for bundling and serving front-end code. It is not a task manger like Grunt or Gulp but rather a “module bundler for modern JavaScript applications”. Although it might not sound appropriate for a WordPress theme at first glance it can be well …Continue reading
Testing WordPress Plugins with WP-CLI and PHPUnit
Everyone agrees that extensive testing of WordPress plugins is necessary. The problem is that the tests we run as developers don’t take into consideration certain edge cases and rely on our experience to determine what needs to be tested. Testing is also time-consuming and quite frankly not very fun. Automated testing is recommended to ensure …Continue reading
WP-CLI Cheatsheet for site setup
For those who are comfortable with WP-CLI but haven’t yet memorised all the commands here are some of the more common ones I use when developing client sites. The object here is to save time and to avoid do repetitive (and unexciting) tasks in wp-admin. If you aren’t comfortable with WP-CLI and would like to …Continue reading
Using the Php Storm Code Sniffer for WordPress
Although I’ve been using Php Storm for a while now I am only just discovering some of the benefits of the IDE. One of these is to be able to apply coding standards to projects where they are lacking. Although there is documentation on the Php Storm site, it doesn’t directly apply to WordPress and …Continue reading
Moving from MAMP to Vagrant for WordPress
Why Vagrant? Over the years I have been a faithful user of MAMP, WAMP, and even XXAMP. As a freelancer, I don’t have much occasion to share my development environment and most of my clients have similar environments- shared servers in the low to mid range using a LAMP stack. I almost always have a …Continue reading
Building Custom Forms in WordPress
Whether sent via email or stored in a database, for login, or a subscription to a newsletter, a form is an essential part of every website. For anyone just learning HTML, forms are where it starts to get tricky and PHP without forms wouldn’t be much of a language. The trouble with forms isn’t that …Continue reading
Requiring Plugins for WordPress Custom Themes
One of the chief difficulties in separating functionality and style is that there is no longer a nice “package” to present to a client. When handing off the custom theme there needs to be some detailed explanation about required plugins and installation, and setup of these plugins is a time consuming and onerous task. With …Continue reading
Php Storm + AZERTY = :) –Updated
Update: I am very pleased to announce that as PHP Storm 9 (or maybe even a later build of PHP Storm 8) this problem has been fixed. You can now do keyboard mapping to your heart’s content and the default mappings work as expected on AZERTY 🙂 I was very excited to use PhpStorm by …Continue reading