How to Get Started With WordPress Theme Development

I was asked recently how to get into WordPress themeing and so I thought I would answer publicly. Perhaps my thoughts can help others.

When I first started using WordPress things were much simpler. The default theme was an index.php and a stylesheet. There were no page templates (in fact there were no pages at all) so it was literally just blog posts and archives. In addition WordPress didn’t have custom menus, or headers, or widgets, or the theme customizer – things that themers now use to make themes fully customizable.

Most themes came with a readme.txt explaining how to change different elements of the theme – eg edit line 512 to change of index.php to change the copyright information. Looking back it seems crazy – and whilst the index.php file could be messy – it did mean there was a lot less to learn.

So what would I suggest if someone asked me how to learn to build a theme now?

I am going to assume that the person asking me the question already has knowledge of html, css and some basic PHP – but if not you’ll need to learn that first. You’ll also need a dev environment of some sort – MAMP and XAMPP are good ways to get started.

  1. Use the theme tutorials on Themeshaper – they walk you through the process of building an entire theme.
  2. Use _s as a starting point_s is a great theme to start with and there’s a lot that can be learnt from it.
  3. Deconstruct the default themes – They come with WordPress, and they’ve been field tested by thousands of people. They’re pretty awesome – but they’re also not so technical that you won’t understand what is happening.
  4. Download and edit themes from WordPress.com – if you want more (after taking apart the default themes) then I think the themes on WordPress.com are great, and are all code reviewed by the team on wordpress.com. They also cover all the main features of the software and are in use by thousands of people so you know they are solid. A few of the themes I would recommend are Ryu, Expound, and Motif.
  5. Follow online courses – more? Ok then, I would recommend looking at the courses by WPShout, they’re good friends of mine and make really comprehensive courses. Well worth taking a look. They currently have two courses, Up and Running with WordPress, and complete guide to WordPress Security.

You’ll notice a lot of my suggestions involve the wordpress.com theme team and using the things they have created. I’ve worked with the team a lot and they know their stuff!

Let me know what you think on Mastodon, or BlueSky (or Twitter X if you must).

WordPress News

The latest WordPress updates from the WPBriefs Podcast.

Related Posts

27 May 2013

WordPress: 10 Years Young, What Does The Future Hold?

WordPress is now 10 years old. I started using wordpress 9 years ago – which means I joined the WordPress community early on. The reason I chose WordPress is simply because of the fabled 5 minute install process – I...
01 Apr 2015

The State of WordPress Themes #wcldn

I recently spoke on a panel at WordCamp London 2015e. Lance – who used to be the Theme Team lead at WordPress.com – asked me if I wanted to speak on a panel with him at WordCamp London 2015. I’ve...
29 Mar 2009

The future of WordPress themes

A couple of weeks ago there was quite a lot of talk within the WordPress themes community about the future of WordPress. Ian Stewart started it, and then it spread around the blogosphere… so I thought I’d offer my rather...
16 Sep 2016

What is the Difference Between WordPress.org and WordPress.com?

Recently, I’ve received a couple of emails asking about the difference between WordPress.com and WordPress.org versions of WordPress. The reason for the confusion is that I sell themes for both sites – and I often get people buying my themes...
13 Nov 2005

Regulus – New WordPress Theme released

Regulus has it’s own theme page here. You can also download Regulus.Towards the end of the Bubble Blitz development I started work on my first WordPress theme. The making of it kind of stopped and started for quite a while...
22 May 2013

11 Things Your Boss Expects You to Know About WordPress

WordPress blogs have become an important tool for promoting businesses. There can be a bit of work involved in maintaining this online presence, and your boss may expect you to get involved – this person may even decide to hand...