How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial

Update: We’ve created a second edition of this popular tutorial! It contains updated code samples, coverage of the latest theme development techniques, and more. Check it out at The ThemeShaper WordPress Theme Tutorial: 2nd Edition.

In only 11 individual lessons this WordPress Theme Tutorial is going to show you how to build a powerful, up-to-date, WordPress Theme from scratch. As we go along I’ll explain what’s happening including (for better or worse) my thinking on certain techniques and why I’m choosing one path over another. Essentially, I’ll be teaching you everything you need to know about WordPress Theme development.

Skip to the Table of Contents.

tutorial-graphic-large

Here’s the list of features your finished theme will be able to boast of:

  • All the search-engine optimization you’ll really need
  • Including google-supported Microformat markup
  • Valid and logical semantic markup structure than can be used to create ANY layout
  • Smart default CSS layouts
  • Dynamic Body, post and comment classes
  • Separated trackbacks and threaded comments
  • 2 widget areas coded to disappear when they’re empty
  • And all the typical WordPress stuff you expect from a theme

I think that’s kind of impressive—for any WordPress Theme.

At the end of this tutorial, with code in hand, you’ll be able to do almost anything you want. You can even think of the finished Theme as your own personal website development framework for WordPress.

I’ve already used it to start another project of my own, The Shape Theme. Download it and check it out if you’d like to see some of the finished code we’ll be going through, live, in action. Alternately, you can browse through the up-to-date source code for the entire tutorial on Google Code.

WordPress Theme Tutorial Table of Contents

Ready for a WordPress Theme Tutorial that will show you how to create a powerful WordPress Theme from scratch? Read it from the beginning and code yourself up something awesome.

  1. WordPress Theme Tutorial Introduction
  2. Theme Development Tools
  3. Creating a Theme HTML Structure
  4. Template and Directory Structure
  5. The Header Template
  6. The Index Template
  7. The Single Post, Post Attachment, & 404 Templates
  8. The Comments Template
  9. The Search Template & The Page Template
  10. The Archive, Author, Category & Tags Template
  11. The Sidebar Template
  12. Reset-Rebuild Theme CSS & Define Your Layouts

318 responses

  1. […] So after some research I started with the ThemeShaper Tutorial. https://themeshaper.com/wordpress-themes-templates-tutorial/ […]

  2. […] a couple of WordPress ones out there, including a recent and excellent guide from Themeshaper on creating a theme from scratch. It’s a much better way to work as a designer, dealing with other people’s code is […]

  3. I think this is really great and has given me so many new ideas. It is stuff that makes this blog a real must read.

  4. […] How to Create a WordPress Theme: The Ultimate WordPress Theme Tutorial – An extremely in-depth tutorial for creating themes from ThemeShaper. […]

  5. […] are a lot of great online tutorials, but what I really miss is having face-to-face, “Help, come here and tell me […]

  6. […] Tutorial para a criação de temas do wordpress – Para quem quer criar um tema na unha. […]

  7. […] imagine my delight when yesterday I found a link to a tutorial on building your own WordPress theme at ThemeShaper. A beginner’s tutorial that assumed little background in hardcoded HTML, CSS and PHP. […]

  8. This is a great tutorial to build a wordpree theme from scratch! Thanks for the links.

  9. […] How to Create a WordPress Theme: The Ultimate WordPress Theme Tutorial – An extremely in-depth tutorial for creating themes from ThemeShaper. […]

  10. […] How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial […]

  11. Great tutorial, it helped me a lot.

    Thanks!

  12. Tanks for the grat tut, Ian.

    Now all I have to say is: Oh my. I have my work cut out for me.

  13. […] kunt de gratis cursus wordpress themes maken hier […]

  14. its too gret theme and fantastic too

  15. […] How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial […]

  16. […] I came across a site called Themeshaper, where I read an excellent tutorial on how to develop wordpress themes from scratch. There are 11 […]

  17. Very good guidance about creating wordpress theme. Very recommended to web developers.
    Thanks for sharing.

  18. […] How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial – ThemeShaper […]

  19. […] How to Create a WordPress Theme: The Ultimate WordPress Theme Tutorial – An extremely in-depth tutorial for creating themes from ThemeShaper. […]

  20. Just fired up MySQL on a OS X server; installed PHPMyAdmin; fired it up and got a test db running and then installed WordPress… …the next step is, of course, a custom theme. Problem is/was, I don’t actually know how to make one. But with your tutorial in hand, I now do. (Well, might learn…)

    In short, this is just a drawn out ‘Thank You”.

    T

  21. How I waish i could have a wordpress paid account. I love wordpress themes and other great features.

  22. […] found a really nice resource for coding WP Themes by hand at themeshaper.com. So after a night’s slog, I had a working theme. It’s my first wordpress theme and […]

  23. […] Ian Stewart from ThemeShaper.com felt the need to create a new series teaching how to create a WordPress theme. So, if you always wanted to create your […]

  24. […] felt the need to create a new series teaching how to create a WordPress theme. so, if you always wanted to create […]

  25. […] To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial https://themeshaper.com/wordpress-themes-templates-tutorial/ This entry was written by Gnocchi, posted on December 21, 2009 at 7:00 pm, filed under WordPress […]

  26. […] felt the need to create a new series teaching how to create a WordPress theme. so, if you always wanted to create your own WordPress theme and […]

  27. […] ThemeShaper.com felt the need to create a new series teaching how to create a WordPress theme. So, if you always wanted to create your […]

  28. […] felt the need to create a new series teaching how to create a WordPress theme. so, if you always wanted […]

  29. […] felt the need to create a new series teaching how to create a WordPress theme. so, if you always wanted to […]

  30. […] felt the need to create a new series teaching how to create a WordPress theme. so, if you always wanted to […]

  31. […] ThemeShaper.com felt the need to create a new series teaching how to create a WordPress theme. So, if you always wanted to create your own […]

  32. […] the awesome people at ThemeShaper.com have posted this delightful tutorial series titled “How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial” Fortunately just in-time for one of my other ventures “Frag League” to spin up. Check it out […]

  33. […] need to create a new series teaching how to create a WordPress theme. So, if you always wanted to create […]

  34. I have around 200 domains about gambling and i want to make some good wordpress themes with 3 columns, doesn’t seem to be so hard but require to much time, if you have time please send me an email and let me know a price for some good themes. In mean time i will try to make some templates by myself, i edited lots of template but none of them maked from scratch.

    Thank’s for sharing with us.

  35. […] felt the need to create a new series teaching how to create a WordPress theme. so, if you always wanted to […]

  36. […] need to create a new series teaching how to create a WordPress theme. so, if you always wanted to create […]

  37. […] felt the need to create a new series teaching how to create a WordPress theme. so, if you always wanted to […]

  38. […] the need to create a new series teaching how to create a WordPress theme. So, if you always wanted to […]

  39. […] How to Create a WordPress Theme: The Ultimate WordPress Theme Tutorial (怎样创建一个 WP 主题:WP主题的终极教程) – 来自 ThemeShaper 的非常深入的主题创作教程。 […]

  40. […] Tutoriel en anglais fait par themeshaper […]

  41. […] Verschachtelung einfach. Zur Erstellung neuer Templates gibt es genügend Hilfen und sogar ein Leertemplate zum Selbsterstellen. Warum habe ich mich trotzdem gegen WordPress entschieden? Ganz einfach: Es ist ein Blog und kein […]

  42. Hello Ian i’m a designer with the passion for the graphic.
    Can i ask you the permission to translate this 11 lessons in italian language, and put in my blog, with a link to your site.
    http://www.francescomasetti.com
    Thank you!

    1. Go for it. See if you can improve on it too and let me know about it. Cheers.

  43. […] How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial […]

  44. […] finally, a great overview of how to build a WordPress template from scratch from […]

  45. […] describing the complete process from scratch and has created the layouts in the download above.  https://themeshaper.com/wordpress-themes-templates-tutorial/ is a great tutorial and a valuable […]

  46. […] engine and theme without actually writing any content. So I’ve scrapped it all, created a blank WordPress theme, and I’m starting to post. I’ll slowly work on the design over time, but content is the […]

  47. […] How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial […]

  48. Excellent post, thank you very much for taking the time to share with those who are starting on the subject. Greetings