Just a few weeks since my last meetup, I’m on the move again. This time it’s my team’s meetup and we’re heading to Vienna in Austria.
We’ve split the team between a hotel and a nearby Airbnb, the latter of which will be where we all meet up during the day. This not only gives us that meeting place but gives individuals a choice of what kind of accommodation they want.
Back in 2008 I released an online tool (which was a simple page on this site) for CSS compression. You pasted in your CSS, pressed a button and it compressed it.
However, I never really did much else with it – either improving what it did and what functions it provided, but also promoting it.
Now, I’ve taken the original compression script and open sourced it for everyone to copy, fork, or just generally use.
In the upcoming month I’m going to share a number of ways of compressing CSS. And one of the most basic is to reduce the various colour values down.
Usually, hex values are used and, sometimes, the colour names. And choosing the right one can save up to 13 characters per reference. Let’s explore how…
By default, WordPress enables the ability to perform pingbacks. Basically, when another site references yours, you’ll be sent a “pingback” – a confirmation that this has happened, which is logged on your site similar to a post comment.
Yes, you can. In WP Admin, head into Settings -> Discussion -> Default post settings. Untick the box marked Allow link notifications from other blogs (pingbacks and trackbacks) on new posts. Click the “Save Changes” button and you’re all done.
Note, however, that this only works for any new posts and not existing. For those, you have to go into the post and, assuming you’re using the block editor, click on the Post tab in the right-hand sidebar, scroll down to the Discussion section and untick Allow pingbacks & trackbacks before updating.
To do this en-masse you’ll need to look for a plugin or be handy with WP-CLI.
What are self pings?
Self pings are when you link to a page on your site and receive a pingback for it. They can be a nuisance and, let’s be honest, aren’t needed.
You can turn them off with a simple script. The following code, for example, will do just that if added to functions.php…
The downside is the sheer simplicity of this solution…
It runs before pings are sent out
It goes through the intended pings and looks to see if they’re referring to the current site. This is based on what’s been defined in the site settings as the Home URL
If the URL is this site, the ping is removed
Sounds good, yes? But this doesn’t take into account any SSL changes. If your site has old content referring to the non-SSL URL of your site, this won’t work. In addition, if you change your site URL at all at any point, it won’t take that into account.
It’s been raised as something that needs changing in WordPress Core but they’ve said a firm “no”. “Pings should simply work” and, most importantly, “there’s already a plugin for it”.
No Self Pings, available for free and with no premium upsell, will turn off all the self pings as well as additional features on top.
For example, will allow you to add additional URLs into the mix. These can be non-SSL version of your site URL, old URLs or even the URLs of other sites you own that you may not want self-pings for.
Here’s how it looks in the Settings…
In future, I intend to update this so that SSL doesn’t even need to be taken into account – both SSL and non-SSL versions of the current or any other site mentioned in the above settings will be considered.
A quick history of the No Self Pings plugin
No Self Pings was written by Michael D. Adams, aka mdawaffe, 17 years ago. However, after 2 updates, development stopped.
I was a user of the plugin myself and, 5 years ago, with SSL issues being reported, I forked the plugin to fix the issues myself. I approached Michael to ask if I could take it over, which he kindly agreed to.
I’ve spoken in the past about how easy it is to contribute to WordPress, whether editing videos, writing documentation or one of many different things that don’t require you to be a development whiz.
But what if it’s the core WordPress product that you do want to help with but you find the thought of it too hard? Well, I’m going to share few simple ways to get involved from zero to limited required development skills.