Stuff...

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 >>


Snippet

Remove WordPress emoji scripts from head

Removes the new emoji scripts which are in the head from WordPress 4.2 up. Put this in your theme’s functions.php

Read more >>


Post

Dropbox sync folder outside dropbox folder on linux debian

If you have a folder/directory that resides outside of the Dropbox folder you can still sync it to Dropbox. You need to create a symlink between the folders. To do this: 1 – Go to the dropbox directory you want to have the external directory linked to cd /path/to/dropbox/directory 2 – Create the symlink to […]

Read more >>