Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Woohoo! WordPress accepted my accessibility PR

· 1 comment · 150 words


Screenshot of a box to enter alt text. It is two lines high and is resizeable.

About 2.5 years ago I proposed a small accessibility improvement to WordPress. It has taken a bit longer than I'd hoped but, as of WordPress 6.1 it has been merged! Now, if you're using the Classic editor, you'll get a larger and resizeable box for entering alt text. Because the text entry uses <textarea> most browsers will also show any spelling errors. Good spelling is essential for people …

HOWTO: Remove the Blubrry PowerPress "New!" Banner

· 350 words


WordPress menu. There is a distracting badge with a white background and red text.

The best thing about WordPress is the plugin infrastructure. A million little gadgets to make your blog better. Sadly, there are all sorts of ways plugin authors can abuse their privileges. Dodgy code and user-hostile features sometimes make plugins more trouble than they're worth. Recently, the normally excellent Blubrry PowerPress plugin pissed me off. It's a useful plugin for publishing…

Create a "Share To Mastodon" Button for WordPress

· 6 comments · 450 words · Viewed ~1,468 times


A WordPress Popup.

Everyone is decamping from Twitter to Mastodon! The great thing about the Federated Internet (hereafter the "Fediverse") is that it is distributed. The bad thing is… it is distributed! What do I mean by that? Here's an example of the problems with decentralised systems. If I want to create a link on a website which will share text to Twitter, I just create a URl which points to: t…

Semantic Comments for WordPress

· 2 comments · 400 words


The Logo for WordPress.

As regular readers will know, I love adding Semantic things to my blog. The standard WordPress comments HTML isn't very semantic - so I thought I'd change that. Here's some code which you can add to your blog's theme - an an explanation of how it works. The aim is to end up with some HTML which looks like this (edited for brevity): <li itemscope itemtype="https://schema.org/Comment"…

Better Footnotes in WordPress JetPack

· 350 words · Viewed ~205 times


A very long footnote.

Previously, I've written about using Footnotes in WordPress Markdown. A reader notified me that the footnotes weren't very accessible. This blog post describes the problem and proposes a solution. The Problem Using WordPress's JetPack, markdown footnotes are rendered as: Some text <sup id="fnref-1234-1"><a href="#fn-1234-1" class="jetpack-footnote">1</a></sup> ... <li id="fn-1234-1">The…

Footnotes in Markdown

· 2 comments · 400 words · Viewed ~552 times


A very long footnote.

Did you know - WordPress Markdown supports footnotes? There is some documentation but I thought I'd write a slightly more comprehensive guide. The code is pretty simple. Write [^1] where you want your first footnote link to appear. Then, later in the document, write [^1]: The text of the note. It doesn't matter what number you put inside the [^…], WordPress automatically generates a sequential …

WordPress Stories - a quick review

· 3 comments · 250 words · Viewed ~208 times


In product screenshot. You've got early access to Story Posts and we'd love for you to give it a try. Now stories are for everyoneCombine photos, videos, and text to create engaging and tappable story posts that your visitors will love.Story posts don't disappearThey're published as a new blog post on your site, so your audience never misses out on a thing.

The WordPress app for Android prompted me to add a story! This is a new and experimental feature. Sadly, it isn't very good. Here's how it works. There's a brief description and some aspirational screenshots. There's a basic image picker. Then you get some basic tools to add text on top of your image. I know I'm a cynic, but this is a little underwhelming. It just posts an image to the…

How to preserve deleted Tweets in WordPress?

· 3 comments · 650 words · Viewed ~246 times


HTML code of an iFrame.

I like quoting people's Tweets in my blog posts. But, sometimes, people delete their Tweets. This blog post examines two questions. How to preserve Tweets in blog posts that they are still readable even after the user deletes them. Whether this is morally acceptable behaviour. Let's tackle the easy question first. Preserving Tweets Using the WordPress OEmbed feature, I can just paste in a…

WordPress's undocumented stats API

· 2 comments · 400 words · Viewed ~238 times


WordPress console showing a JSON output.

This blog runs on WordPress. Using their JetPack plugin, I get fairly detailed stats on views and visitors. But, bizarrely, the API is undocumented. Well, sort of... Let me explain: Just Show Me The Code Here's the API call to get a year's worth of data about your blog. https://public-api.wordpress.com/rest/v1.1/sites/shkspr.mobi::blog/stats/visits ?unit=day &date=2021-01-03 &quantity=365 …

Adding Semantic Reviews / Rich Snippets to your WordPress Site

· 850 words


Screenshot of JSON code in a web page.

This is a real "scratch my own itch" post. I want to add Schema.org semantic metadata to the book reviews I write on my blog. This will enable "rich snippets" in search engines. There are loads of WordPress plugins which do this. But where's the fun in that?! So here's how I quickly built it into my open source blog theme. Screen options First, let's add some screen options to the WordPress…

Howto: Disable image pop-ups in WordPress comments

· 150 words


An mshots popup obscuring the screen.

If you have the Akismet spam plugin for WordPress, you'll be familiar with this problem. When your mouse pointer goes over any URL, you get a large website preview taking over parts of your screen. I asked for a way to turn this off and I'm happy to say the developers listened! Sadly, there's no tickbox option, only a WordPress filter so you'll have to add the following scrap of code to your…

Improving WordPress Video Accessibility

· 2 comments · 200 words


A video with an easy to see play button.

In order to provide a video playback UI, WordPress uses the excellent MediaElement library. Recently, I discovered a slightly annoying flaw - I couldn't see the play button! Here's a screenshot of the video UI. In the middle of this screenshot is a white play button. I have trouble seeing it, because the video's background colour is predominantly white. The issue is with the…