Keith Devon

  • Allowing null search with Relevanssi

    I love the Relevanssi plugin for WordPress. It’s an easy way to power up the, frankly lame, native WordPress search. By default the plugin will return no search results if no search term is given. Makes sense. But what if you are searching by other criteria too, and want to allow the search term input…

    Read More

  • Using variables with WordPress translation functions

    Today I wanted to be able to pass a custom field variable to the WordPress localization (l10n) functions. The custom field is a select field, so all the possible outputs are known. WordPress uses PO and MO files for translations. These are generated by scanning the site for __() and _e() functions, with a programme…

    Read More

  • Setting up domains on WP Engine

    Add domains to install Log in to my.wpengine.com Click on the install name Click on ‘Domains’ Click ‘Add domain’ Add the non-www version of the domain Click ‘Add domain’ Add the www version of the domain Change DNS at registrar Log in to my.wpengine.com Click on the install name Note the IP Address and CNAME…

    Read More

  • Full screen background images

    I’m putting this here for my own sanity. If I had £1 for every time I’ve tried to solve this issue! The goal here is to have a background image that covers the whole of the browser window. Ideally we want it to scale, stay centred, and keep it’s correct proportions. My go-to article on…

    Read More

  • Website Budget Calculator

    This morning I built the Website Budget Calculator. This tool is meant to be used as a way for potential clients to work out how much they should invest in their website – based on the value based pricing approach. I’m interested in, but sceptical of, value based pricing. I’ve listened to talks and podcasts, read…

    Read More

  • First Contact – How to pitch to developers

    This post is based on a talk I gave at the “Finding a developer” event, by Enterprise Nation on 13th March 2014. First contact – How to pitch to developers from keithdevon The current state of play There are a lot of great developers out there looking for work, and a lot of great clients…

    Read More

  • Building 10rituals.com

    WordPress as an app engine I recently read “The Monk Who Sold his Ferrari” and loved it. Part of the book suggests 10 daily rituals, which, if practiced for 21 consecutive days will become habits. I built 10rituals.com so that I could track my progress at integrating these rituals into my daily routine. Initially, I built this for…

    Read More

  • Why I’ve set a minimum budget

    Today I added a line to my contact page stating that my minimum budget for a new project was £2,000. I wanted to explain why I’ve done this. I’m in the privileged position of getting lots of enquiries for new work. Some days I get up to five enquiry emails. I’m so grateful for this.…

    Read More

  • IE Compatibility view issues

    I’ve run into issues a few times recently with Internet Explorer’s ‘Compatibility view’. Some of my standards compliant web pages were being broken by having this view enabled. I found a solution via this stackoverflow page. If you add the following to your <head> it will force IE to disable compatibility view: [code]<meta http-equiv=”X-UA-Compatible” content=”IE=edge”…

    Read More

  • Freelance contract survey

    Contracts are a hotly debated part of the freelance workflow. Many people don’t use them at all. Others will swear by them, and never start a project without one. Where do you stand? [yop_poll id=”2″] Do you use another method? Add your thoughts in the comments.

    Read More

  • 10 tips from 4 years of freelancing (Part 1)

    On 8th April I gave a talk at the Untangle the Web meetup at Google Campus in London. As a freelancer there is a lot of advice out there, especially in the web industry. You’ll probably have heard some of these tips before, some might be new. They’re not necessarily the best, or most important,…

    Read More

  • Passing variables to get_template_part() in WordPress

    This morning I needed to pass a variable to a file that I was including using the WordPress get_template_part function. I was fiddling around with global variables when I thought there must be a better way. There is. Locate and include You can use the WordPress locate_template function within PHP’s include(). It’s done like this: [code]include(locate_template(‘your-template-name.php’));[/code]…

    Read More