Removing all emoji code from a ClassicPress site

Here’s a quick tip for ClassicPress theme developers. If you want to remove all trace of the WordPress/ClassicPress built-in emoji scripts, styles and tags from your ClassicPress site’s pages, here… More »

Detecting https in PHP – the definitive guide

Detecting whether your PHP code is running on https or http is useful in a number of situations, particularly if you’re building a URL to set a form action or… More »

How is ZigPress managing the introduction of Gutenberg?

If you keep your ear to the ground as far as the WordPress content management system is concerned, or even if you don’t, you may have heard that a new… More »

Swap two variables in PHP

A very simple post, with a very simple solution to a very simple problem. Sometimes you will need to swap two variables around, perhaps if you have a form that… More »

The WordPress 4.8 text widget will destroy your content

I just completely lost the contents of a text widget, and it was WordPress’s fault. I had a normal, old-style text widget, containing a set of links, and within each… More »

Using a Digital Ocean droplet as a VPN with static IP

Not strictly WordPress-related, this is nonetheless an issue that faces many web developers: how to access your client’s hosting when the client needs you to have a static IP address… More »

WordPress 4.7.4 and the ‘noopener noreferrer’ attribute

Some of you may have noticed that after you upgrade to WordPress 4.7.4, when you edit a post using the visual editor tab and add an internal link (a link… More »

JavaScript toFixed() does not work in number fields on Firefox

Here’s a very short, quick post, detailing a Firefox scripting frustration that I discovered today. Let’s say you have a JavaScript function that calculates a value. The value represents a… More »

Connecting to Let’s Encrypt SSL sites via cURL from MAMP

This is a brief lesson in diagnostics that some may find helpful. The Scenario I develop websites on a Mac running MAMP. On my Mac I have an installation of… More »

How to disable responsive images in WordPress 4.4

The latest version of WordPress, 4.4 (“Clifford”), has rolled out a feature whereby it adds ‘srcset’ attributes to all image tags in order that browsers can decide which image to… More »