Stuff...

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


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


Snippet

List Buddypress Groups Of Current Logged In User

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


Snippet

Buddypress Logged-In User Profile Link URL

Returns the url of the logged user’s profile e.g. <p>You can check out your <a href="<?php bp_loggedinuser_link() ?>"><u>profile here</u></a>.</p>


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


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!


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


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


Post

Common SEO Snippets & Info

No index a webpage: <meta name="robots" content="noindex,nofollow"> http://www.robotstxt.org/meta.html robots.txt examples Disallow all User-Agent: * Disallow: / Allow all User-Agent: * Disallow: Standard WordPress robots.txt User-Agent: * Disallow: Note: due to Google now rendering pages using all css and javascript, it’s probably not a good idea to Disallow: /wp-content/plugins/ any more http://www.robotstxt.org/robotstxt.html Meta Description Length: 923px […]


Post

Windows Software for Web Developers/Designers/SEOers

Ok, work in progress, but I am rebuilding my Windows PC. I am getting rid of Windows 8.1 as I simply can’t live with it anymore, I’ve tried, but it’s no good I want to go back to Windows 7. Now rebuilding this Windows PC is not something I’m doing on a whim, it’s a […]