CSS Clear
A set of snippets to remove the annoying clearfix issue with CSS floats.
A set of snippets to remove the annoying clearfix issue with CSS floats.
A neat little function to add an HTML5 shiv into the header.
A nifty little function that returns the current post type you are viewing when editing a post in the Wordpress admin.
Fix the dreaded IE8 compatibility mode problem with the HTML5 doctype
Numerous times now I have been faced with bugs caused by Internet Explorer versions 8 – 9 having ‘compatibility mode’ switched on by default. This little snippet solves this problem.
If you use Coda 2 to build Wordpress themes or plugins, you need this little Coda 2 plugin I’ve fixed.
Use this code snippet at the very top of your HTML document to easily distinguish between IE browser versions in your stylesheet.
A PHP function I’ve put together to generate a breadcrumb trail for any ‘pretty’ URL pattern. Works with Wordpress out of the box, should work with other frameworks too.
Here is a list of the responsive break points I use when working with Twitter Bootstrap. It covers all screen widths and orientations from an iPhone up to a large desktop screen.
A nifty bit of code to remove duplicates from a multidimensional array, then sort into alphabetical order.
Here is an easy way of adding an image upload field and a text field to a custom taxonomy in Wordpress.
A simple snippet to generate taxonomy filters for posts in Wordpress. Just paste into the functions.php file of your theme.