enquire.js is like a wall in space

Using Media Queries in JavaScript with enquire.js for Responsive Masonry and More

Ever wanted to toggle JavaScript on and off with media queries only to discover you cant? Instead you have to write a huge pile of JavaScript to monitor the initial and changing document width and toggle the script on and off manually. This is cumbersome and requires an unreasonable amount of code to do something […]

Break free from inline styles in WordPress

Adding Borders to WordPress Images the Right Way – a.k.a. Why Inline Styles Have No Place In Your Posts

Much controversy surrounds the removal of the image border feature in WordPress. In this tutorial Morten Rand-Hendriksen shows you how to add image borders the correct way and also proposes a new set of standards for WordPress theme developers going forward to account for users who want borders around their images.

Proper Pagination in WordPress

How to add proper pagination as default in WordPress themes

It is time we the people who build WordPress themes cast aside the rotting corpse of Older and Newer posts links and replace it with proper pagination. After all the function is already built into WordPress – in fact it has been for a very, very long time. So, without further ado let me provide you with the code you need to get started and a few tweaks to move your WordPress pagination into the 21st century.

A bugfix for WordPress 3: Building Child Themes on lynda.com

With the update of WordPress to version 3.4 came some important feature improvements that changed the way certain key components work. This includes how the header image and background functionality is implemented. This in turn means the old methods of making changes to these elements suddenly don’t work any more. The Issue This change has […]

Automatic responsive videos in WordPress with oEmbed, FitVids and a little PHP magic

UPDATE: I’ve added a 4th step to the list to remove automatic inline styles from being inserted when embedding videos. If you’re using a responsive theme on your WordPress site (or you’ve built a responsive theme) and you’ve added YouTube, Vimeo or other videos using oEmbed you will undoubtedly have noticed those videos do not […]

Creating a custom video field in WordPress

Simple video embedding with custom fields in WordPress – YouTube

One of my primary goals when building WordPress themes for my clients is to make it as easy as possible for them to post and manage content. And though video embedding has become much simpler over the years, controlling the video content can still be a bit of a pain, especially if you can’t remember […]

Using the time tag in WordPress and when parsing RSS feeds

The <time> tag is a little used but very effective little HTML element that allows you to embed additional information to dates and times in your content. The idea is that in addition to the actual text that shows the visitor the time, you can provide the browser, search engines and other computers with actual […]

How to remove WP Geo plugin from specific pages

I ran a cross a rather interesting situation this week while working on the Vi Er Der Du Er site. The site uses the WP Geo plugin extensively on both pages, and posts, and custom post types but I needed to deactivate it for one particular page because I was embedding a different custom Google […]

WordPress 3: Building Child Themes – new course at Lynda.com

Child Themes are by far the easiest way of creating a new look and introduce new functionality to a WordPress powered site. By creating a WordPress child theme you get all the benefits of the parent theme while gaining the ability to create custom styles, custom layouts and custom functions just for you. In May […]

Custom Page Templates in TwentyTen

With the release of WordPress 3.1 came a new version of the stock TwentyTen theme with some subtle changes, most importantly the move of all the loop elements in the templates (the code that runs through the database and gathers info like title, date, author, categories, content, images etc) into their own files. In the […]