Stuff...

Post

How to Hide / Protect Email Addresses on WordPress Websites

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 […]

Read more >>


Post

How to Display Facebook Page Events on Your Website

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 […]

Read more >>


Post

Laptop volume controls (fn keys) not working on Openbox (Debian 9 stretch – crunchbangplusplus)

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 […]

Read more >>


Post

Creating a Debian Linux bootable installation USB drive

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 […]

Read more >>


Post

mailto: links not working on Google Chrome Android

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();?>&amp;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 […]

Read more >>


Snippet

Get WordPress Thumbnail URL, Width & Height

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 […]

Read more >>


Snippet

List Buddypress Groups Of Current Logged In User

Returns a list of the groups the current logged in user is a member of

Read more >>


Snippet

Buddypress Logged-In User Profile Link URL

Returns the url of the logged user’s profile e.g.

Read more >>


Snippet

Override and set the Facebook open graph locale the Yoast WordPress SEO plugin puts in the WordPress head

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 […]

Read more >>


Snippet

Remove Yoast WordPress SEO plugin’s search schema markup from the WordPress head

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!

Read more >>