Snippets
Post Pagination in WordPress
Setting up post pagination in older versions of WordPress was a little tricky and more often than not required the use of a plugin…
July 20, 2015Modify footer text in WordPress Admin area
If you happen to develop sites for your clients in WordPress it is worth taking a few extra steps to customise the WordPress admin…
June 20, 2015Remove / disable textarea resize image
If you are a little OCD or have the need to stop your from being able to be resized thankfully there is a super easy way to achieve this…
June 20, 2015Better PHP Logging
If you are doing any kind of PHP development you will no doubt need to log out some values. Unlike JavaScript, logging out to the browser…
June 16, 2015Force up and down arrow for number input
Those with a keen eye will notice that the up and down arrows for the number input doesn’t show up in Chrome (and some other WebKit based…
June 16, 2015Linking to an image folder within a WordPress theme
During WordPress theme development you will more then likely need to display some images that are located within your theme directory. The…
June 16, 2015Adding Easy Digital Download Cart Quantity to Menu
When using the popular e-commerce plugin Easy Digital Downloads it is very common you will want to add the cart quantity to the menu. There…
March 22, 2015Get URL with JavaScript
At some point in time you need to get the current URL and do some logic based on it. JavaScript has handy API called which has all the…
March 18, 2015Adding Class to WordPress Post Thumbnail
If the desired output of the default WordPress post thumbnail is not enough you can easily adjust the PHP to output your appropriate class…
November 27, 2014Change Font-Size within Input Field Based on Length
Recently I had a great conversation with an outstanding User Experience designer about a few interactions on a project we were working on…
November 23, 2014Feature img as a bg for single WordPress entries
The following snippet when placed within a WordPress post loop will display a feature image uploaded via your media uploader and place it as…
November 21, 2014Custom links for WordPress author profiles
The following snippet when placed within WordPress will allow authors to add custom links to their profile and display for each author bio…
November 21, 2014Lazy loading images for flexslider
Flexslider is one of the most used sliders, for good reason. This snippet helps lazy load your images. In order to create a perceived…
November 21, 2014Remove Telephone Styling in iOS
Viewing telephone numbers on iOS device can provide an unpleasant shock. They tend to render in a default blue colour making your designs…
November 17, 2014Adding Toolbar Menus in WordPress
If developing themes or plugins for WordPress sometimes it is handy to add a menu item to the WordPress admin bar to help quickly reference…
November 14, 2014Exclude IP Address From Google Analytics
If you have installed Google Analytics on your site, or for a client it is always helpful to exclude IP addresses so the sites stats give an…
November 14, 2014Styling Placeholder Text
Sometimes the light grey placeholder text needs to be styled to fit with your needs. All in all it is pretty easy with a couple of pseudo…
November 14, 2014Load a Different Header in WordPress
This little snippet can come in handy when you need to serve a different header on a per page basis.
August 21, 2013Text input non-editable
If you ever need to make an input field or textarea non-editable the attribute comes in very handy.
August 14, 2013Sass Clearfix Mixin
There are a few ways to implement the clearfix hack but the following Sass Mixin has been in my toolbox for the last year thanks to this…
May 06, 2013Group Posts by Date
If you publish posts multiple times per day sometimes there is a need to wrap posts by date. This is common amongst lots of link bloggers…
March 02, 2013Converts pixels to EMs with Sass
If you like using pixel values but understand that having your fonts set in EMs works better, especially when tackling responsive web design…
February 26, 2013URL as a Sass Variable
Do you ever find yourself trying to remember the URL path of you images directory? Well with Sass you can quickly add the path to the…
February 20, 2013Remove Trackbacks from Comment Count in WordPress
Are you finding that your comment count in WordPress not the correct number? Adjusting the settings in the discussions screen still doesn’t…
December 20, 2012Focus on Input with JQuery
This is very simple and can also be done with HTML5 autofocus which I would recommend you use (if you can). If for some reason you need to…
October 16, 2012Scroll to position with jQuery
If you need to scroll to a specific location on the page this little custom jQuery function can help you out. This snippet will help you…
August 30, 2012