If your WordPress admin interface lives at a domain that’s different from your actual site’s, make sure to add the former to the “allowed redirect hosts.” If you don’ t, you’ll get redirected to the admin dashboard way more often than needed, e.g., after running some kind of action, rather than stay on the settings or tools page the request originated from. Continue reading Allow WordPress to Redirect to … Itself →
I decided to have a look at how WordPress generates its increasingly rare pingback “previews.” The result is a somewhat ugly PHP function that, given an HTML string and target URL, returns the link text, plus some of the text surrounding it. Continue reading Adding Some Context to (Web)mentions →
Sometime last year, I wrote a (rather opinionated) plugin that automatically shares WordPress posts on Mastodon. While the Settings page lets you choose which posts will be POSSE’d, most “customizing” is made possible through filter hooks. Continue reading Customize “Share on Mastodon” Statuses →
Notes—very short posts that normally don’t have a title—on this site sport URLs that end in a short, numerical “slug.” Each such slug is generated automatically (with a little help of Optimus), based on the post’s database ID, and thus unique. Continue reading (Seemingly) Random Post Slugs →
I’ve recently taken up experimenting with a small Ubuntu VPS, and while still directly hosting a few Laravel-based applications, I’ve also started fiddling with Docker (Compose) as a means to keep the host OS somewhat lean. That said, let’s have a look at some of the work that went into installing Matomo on top of this setup. Continue reading Self-Hosting Matomo on a Small VPS, Alongside Other Services →
Dequeuing a WordPress theme’s Google Fonts stylesheet—the trick we previously used to remove the call to Google’s font-loading service—doesn’t mean we can’t use custom web fonts anymore. In fact, we can simply add a fonts stylesheet of our own. Continue reading Self-Host WordPress “Google Fonts” →
Worried about sending traffic to Google’s servers, for privacy or other reasons? Well, then! Using a really basic child theme—you really shouldn’t modify theme files directly, as your changes won’t survive security and other updates!—let’s remove at least one call to Google Fonts from your WordPress website. Continue reading Remove Google Fonts from a WordPress Theme →