Dummy’s Guide to Roots Sage Theme in WordPress

Recently I’ve mostly been using Understrap as a theme for WordPress, however the Understrap GitHub repository has shown a disturbing lack of maintenance for the last year or so. With Bootstrap 5 on the horizon, and WordPress and PHP constantly moving forward, I don’t want to be stuck in a potential development dead-end using Understrap. … Continued

WordPress wp-ctrl-semicolon Plugin

I’ve previously blogged about creating keyboard shortcuts in WordPress. Now I’ve bundled that up into a plugin. It’s available on GitHub. https://github.com/tobyink/php-wp-ctrl-semicolon

WP Tempus Dominus Auto

Usually when I blog about programming, it’s Perl stuff, but here’s something that’s mostly Javascript (with a little PHP to act as a shim for WordPress). It’s a script to use Tempus Dominus as a date/time picker for HTML 5 date and time form inputs on Bootstrap/jQuery-based sites. It lets you do stuff like this: … Continued

PHP Debugging with Style -OR- How I Learned to Stop Worrying and Love the Bug

PHP lets you define your own error handler, so I decided to get a bit fancy. MegaErrorHandler (MEH) outputs its errors as specially-formatted HTML comments, with the details of the error encoded using JSON. A small client-side script, with an associated stylesheet then pulls this data out of the comments and formats it as a … Continued

Political Map of the UK

(Requires Javascript.) See below for an explanation on how these placements were calculated. UK-WideCountry-Specific (New) Labour Conservative Liberal Democrats Greens Respect Coalition UK Independence Party (UKIP) British National Party (BNP) Scottish National Party (SNP) Plaid Cymru Democratic Unionist Party (DUP) Sinn Fein Social Democratic & Labour Party (SDLP) Ulster Unionist Party (UUP) Alliance The Axes … Continued