It’s very common to put email addresses onto the front end of websites, and why not, it’s a useful piece of information and pretty much essential on loads of websites for loads of reasons. The trouble is those pesky spammers send their bots to crawl the internet looking for email addresses on websites. They then […]
Displaying your Facebook page events on your website is actually quite simple once you realise you need to use the Facebook Page Plugin/Widget, but with the data-tabs setting configured to just show your Facebook events. I had to do this for a friend of mine, but I kept going round in circles until I just RTFM […]
On a clean install of the excellent http://crunchbangplusplus.org/ linux distro (Debian 9 stretch AMD64) my Asus laptop’s volume control fn shortcut keys were not working for volume up, down and toggling the mute. In this distro it’s using pulseaudio and pavucontrol to control the audio and volume. The little applet which sits in the tint2 […]
This method of creating a Debian Linux bootable installation USB drive uses the command dd to copy the ISO image to an empty USB stick. Make sure the USB stick is empty and is big enough to take the Debian installation image you have selected, some of them a pretty big nowadays. Insert the USB […]
This drove me nuts for a good few hours. I had a normal mailto link which I was using as a simple email this page/post button/link in a WordPress template: <a href=”mailto:?Subject=<?php the_title();?>&body=<?php echo urlencode(get_permalink());?>” title=”Share via email” rel=”nofollow”>Email</a> All fair enough, right? Nope not on Google Chrome for Android, it just opened the mailto […]
Simple function to get the current post’s thumbnail/featured image, but to return it as an array so you can get the thumbnail url, the thumbnail width and the thumbnail height. In the example I’m getting it to use the thumbnail with a lazyload script (specifically this one https://github.com/tuupola/jquery_lazyload). Replace thumbnailsize with either the name of […]
Returns a list of the groups the current logged in user is a member of
Returns the url of the logged user’s profile e.g.
The Yoast WordPress plugin adds the Facebook open graph markup to your WordPress head if you enable it. It takes the locale setting from whatever language you have set in the WordPress general settings. You can change it in the settings to whatever locale you need or, if you want to keep the WordPress language […]
Add this to your theme’s functions.php to remove the search schema that the Yoast WordPress SEO plugin puts in the WordPress head. Particularly if you’re not using the WordPress search on the site!