I couldn’t believe a google search didn’t already turn up the answer for this — it’s crazy that you can’t just vertically-center the images in a wordpress simple image gallery. After much faffing with CSS I found a simple answer
… Read Full Article
Posts Tagged: wordpress
03 ways to run WP-CRON manually
I’ve recently been looking at how best to run wp-cron manually from the system to avoid a performance hit when a visitor loads the site. I’ve so far found 3 different ways to run this. There may be others.
… Read Full Article
0WordPress updates progress
I’ve had an issue for a while now where installing wordpress updates doesn’t show any messages or progress. The updates generally do install but it is tricky to know when the updates have finished. There are a few threads online with possible solutions but most of them haven’t been helpful in my case.
… Read Full Article
0WordPress visual editor not working
I’ve had an issue for a little while where the wordpress visual editor button stopped working. The code editor was fine, and the button for the visual editor is present but clicking on it has no effect. After much fiddling around I finally discovered it was being broken by my Content Security Policy!
… Read Full Article
0PHP sendmail failing dmarc
I run a VPS which hosts several domains. Sending mail from these domains has always been tricky. I’ve long used WP SMTP Mail plugin for wordpress to work around this, but I wanted to get a proper fix. After much reading I found a proper solution
… Read Full Article
0WordPress Local Gravatar cache
I like to have avatars shown for people who comment on my blog. WordPress supports the gravatar service natively so enabling this is very easy. However it comes with a cost — accessing external files from another domain adds lots of extra load time in the form of new DNS lookups, new SSL connections to make, etc. Wouldn’t it be nice to have gravatars stored locally and served from your own server. Well that’s what I’ve been doing for some time now, if you’d like to know how, read on…
… Read Full Article
0Localisation of Amazon Affiliates links
I occasionally reference products on my various websites, and usually link them to Amazon for anyone interested in buying them. A long time ago I used to link with an amazon affiliates link but never earned anything from it as my typical readership is well distributed around the world. Unfortunately Amazon don’t provide a way to redirect visitors to their local amazon site whilst retaining to affiliates payments. There are various solutions out there but all the ones I found had issues with them, so I developed my own.… Read Full Article
5Adsense ads above the last paragraph of a post
You may have noticed that we’ve tweaked how we display our adsense ads. We wanted some small text-only ads near the bottom of each article, which would be added automatically. This took a little bit of tinkering, but eventually we developed a solution which works well and doesn’t seem to knock page processing times much. Simply add the following code to your theme’s functions.php (don’t forget to change your adsense IDs) … Read Full Article
0Easily set the parent of a WordPress comment
As is documented in the site update log, for a while we had a problem with our theme where it wasn’t possible to reply to a comment so that the reply would appear correctly in a threaded way. We have no fixed this problem, but have been left with a significant number of comments which really need editing so it is easier to see what they are in reply to. With a standard wordpress install this requires going into the database and editing there, which is very tedious. Instead, we’ve used some simple functions to add an option to the comment-edit admin page, to set the comment parent there. Eventually this will be developed into a proper plugin to enable this functionality. For now the code is below, just add it to your theme’s functions.php
1Jetpack-style comments without Jetpack
One of the best things about wordpress is the built-in social aspect provided by comments. Getting your comment section right can be very important to any website, including ours. Over the years we’ve experimented with various comment plugins including Disqus and more recently Jetpack. However, we’ve always ended up bring things back in house for management, performance and privacy reasons. When I moved back from Jetpack comments I really missed some of the slick features provided by Jetpack, both the social-network logins and the general slick styling. Anyway, to cut a long story short I finally had time today to take a good look at how wordpress “does” comments and figure out a way to build an in-house system which looks nice and slick like the comment interface provided by jetpack. Best of all its surprisingly simple and does things the “proper” way…
… Read Full Article
“Hi James I realise it has been a long while, but I just checked this on windows 11 (build 23H2)…”