#WordPress

Illustration of a laptop placed on an engineering size reduction symbol with lines showing data deflected away from a red circle

WordPress: how to remove unwanted code from your site’s header

July 15, 2021

When WordPress generates a webpage, it adds a lot of information unseen by the user. Much of this appears between the <head> tags in the code, and asks the browser to interpret information in a certain way, or load additional files and resources. While some of these are useful (such as style.css, which turns raw words into a stylish website), others are not. Some could compromise the security of your site.

Each resource that's requested slows your website a little. It makes sense to remove anything your theme or site doesn't use, even if all it does is shave a third of a second off the loading time.

Illustration of a building in Japan with a bright yellow background

WebP: a “new” format for your WordPress images

June 29, 2021

WebP’s arrival is getting WordPress fans excited. As a photographer, I’ve been watching this image format evolve for a couple of years. It promises much, delivers some of it and is gaining popularity. Question is whether now is finally the time to make the switch from trusty JPEG.

Although you may only just be hearing about it, WebP has been in the works for a decade. Designed from the outset for the web, Google is pitching it as a replacement for the venerable JPEG. With support for both lossy and lossless compressions, animations, and transparent backgrounds, it looks like a solid option to replace JPG photos, PNG illustrations and countless animated GIFs.

How to stop WordPress spoiling your images and photos

May 19, 2021

You upload your latest photo to WordPress and click “preview”. But what’s this? The image looks blurry and the text on your watermark is horrible and pixilated. This isn’t what you wanted.

Welcome to WordPress image hell.