The easiest way to convert a ton of JPGs to WebP is to use the cwebp command line utility written by the WebP team. Here’s how I do it using a very simple Bash script: This goes through all JPG files in ./source/uploads folder, converts them with a 90% quality rate and writes the output… Continue reading How to convert JPGs to WebP automatically
How to convert SVG files to PNG automatically
A few weeks after the designer handed off about 500 tidy little icons, some customer requested PNG versions for all those. Of course one option would be to export all again in PNG format. While possible, I wanted to simplify the designer’s job after creating new icons: hand off the SVGs and we’ll take care… Continue reading How to convert SVG files to PNG automatically
Enable Custom Post Order via code in WordPress
Recently I enabled the great Simple Custom Post Order (SCPO) plugin in a bunch of sites. After you activate it you can go into its settings and enable sorting for all posts, custom post types, taxonomies, etc. We had a particular case though. At my current job, we manage a network of nearly 200 WordPress… Continue reading Enable Custom Post Order via code in WordPress
How to remove captions from Instagram embeds in WordPress
This is a simple code snippet to achieve just that in Instagram embeds, via shortcode or using Gutenberg. [instagram url=https://www.instagram.com/p/B1WjYcxCmHp/ hidecaption=true] You can achieve the same effect in single embeds by using the following shortcode Here’s the result YouTube Use this snippet if you want to achieve a similar result wit YouTube embeds: Has this… Continue reading How to remove captions from Instagram embeds in WordPress
Contributing design to open source
I contributed a logo design to an open source Python library. Learn more about my experience and how you can contribute too.
Getting started with Jigsaw
Get started with this amazing static site generator, based on the Blade templating engine from Laravel.
Don’t design your emails
I just came across a post from 2016, about why you shouldn’t design your email campaigns. This probably doesn’t apply to all situations and industries, but I know for a fact that many clients pay for lots of hours of crafting, debugging and testing custom templates that aren’t really worth the time.
Link: Don’t Design Your Emails
UIkit – a lightweight and modular front-end framework
A lightweight and modular front-end framework for developing fast and powerful web interfaces.
I’ve been contributing to a project where this little UI framework is used, and it’s pretty cool.
Check it out: UIkit
Updating Laravel Homestead
(!) Notice: this post is probably outdated Recently I needed to update my Homestead VM to a more recent version, because I needed to run PHP 7.2. While you can just update PHP on a current Homestead instance, I was using a very old Homestead version and wanted to update it. Moreover, I wanted to… Continue reading Updating Laravel Homestead
Enjoyable WordPress theming with Timber (and ACF)
I was thinking of doing an in-depth tutorial on Timber. A few days since I started a draft, CSS-Tricks published “Timber and Twig Reignited My Love for WordPress“, which is a great read. However, I decided to push some of it live because this plugin deserves more love. I’ve built a lot of WordPress sites. Recently, it has become… Continue reading Enjoyable WordPress theming with Timber (and ACF)