Currently Browsing Recent Articles

Adding a sticky header to your WordPress theme

Posted on 21st June, 2014 Leave a Comment

Sticky headers have been popular for quite a while now, I think this is due to the increase in mobile traffic to websites. As pages become narrower they also become much longer, so a sticky-nav is quite a nice thing. I’m sure that there are quite a few of these tutorials online, but for me…






Next and Previous Posts Navigation With Thumbnails.

Posted on 31st May, 2014 8 Comments

A nice way of adding next and previous post navigation with thumbnails and a short excerpt. I’ve created a file that you can just add into your theme folder and call in your actual theme with this include snip; If you want to download my file then click here, otherwise you can copy and paste…






Adding Breadcrumbs without a plugin

Posted on 26th May, 2014 Leave a Comment

So there are plenty of plugins available if you just want to add breadcrumbs to your theme, but if you want something a little lighter then you could just add this to the theme functions.php. This adds a simple breadcrumb to your theme. THIS HAS BEEN RECENTLY UPDATED, I WISH I COULD REMEMBER THE ORIGINAL…






Custom excerpt length & Read More link WordPress

Posted on 26th May, 2014 3 Comments

I often want to use a custom excerpt length in my themes. Custom excerpts can be really useful whether they are being used for the archives, home page or even when being used in meta description! Being able to add just the right amount of copy to a section is easy with this snippet. New…






Redirecting with the .htaccess

Posted on 23rd May, 2014 Leave a Comment

To redirect www to non www add this to your htaccess file. To redirect all sub-domains to the main domain use this. To redirect a single sub-domain use this. Redirect a single url/folder path There are a number of ace tools to help you generate your perfect htaccess file, below is the one I usually…






Create a better options page with the theme customizer

Posted on 4th March, 2014 5 Comments

Since WordPress version 3.4, there has been a rather underused theme customizer, which allows the end user to view any changes made to the theme in a window next to the customizer! Now that’s super cool. You can grab this options.php page from the WPtricks starter theme on GitHub, along with a contact page template,…






carousel style post navigation with Parallax

Posted on 7th February, 2014 Leave a Comment

Recently I noticed the BBC’s really super sweet category navigation, in the form of a slider that is the full screen width, that shows the current categories articles, with the next and previous article being displayed behind an opaque overlay. Looks awesome right? Well I thought so, and this tickled my developer funny-bone and inspired…






Add an options page to WordPress

Posted on 19th October, 2013 3 Comments

This post is a little out of date – Read below The framework is no longer available as an open source project and is now a premium framework! But I’ve created another options page using only the theme customizer which is pretty awesome. It allows you to view the changes to your theme as you…






How to build a dynamic sitemap for wordpress

Posted on 14th October, 2013 Leave a Comment

I always like to include a built in sitemap page to my themes (without using a plugin). So thought I’d include this quick tut on how this is achieved. Also to give the end user some control over whether this should be displayed, I’m including this as a template, for use with WP pages. This…






The complete guide to customising the default post _type

Posted on 1st October, 2013 Leave a Comment

Sometimes rather than creating a custom post type with custom taxonomies, we can just edit the default Posts section in WordPress. With that in mind I thought that I’d create a complete “snippets” guide on how to edit the default WordPress post_type “Posts”.  In this example I’m renaming the “Posts” to “Developments”. Quick Menu: Rename…