05/26/10

Creating Your WordPress Theme — Part 1


blog-wp

Over the past few months I’ve gotten a lot of comments, tweets, and emails about how I create the layout/design here at OSN.

So I figure I will attempt to create a basic tutorial on how to create a 3-column design with a 3-column footer. We will be using CSS and XHTML strict coding because that is what comes easiest to me. Along the way I will mention plugins and little ideas that I tend to use frequently in my designs!

This is part one in the weekly series, where I go over the programs you may need, the color scheme I will be using, and the font I will be using.

So It Begins

Since the files have the .php extension you will need a text editor that is NOT notepad. I personally use and recommend the free EditPad Lite.

The files we will be creating for a basic theme:

  • 404.php
  • archive.php
  • comments.php
  • footer.php
  • functions.php
  • header.php
  • index.php
  • page.php
  • search.php
  • sidebar.php
  • single.php
  • style.css

I always start with the design FIRST before breaking it into code and style. I highly suggest figuring out your color scheme. Helpful sites for that would be Adobe Kuler and ColourLovers.

Here is our palette for the purpose of this tutorial:

#107296
#5f9610
#f2f2e8
#d8d0a6
#e07e0a
#534741

I chose these colors because it reminds me of the sky, plants, and earth. Oh and because they are pretty. Don’t judge!

We will also be using the font Learning Curve both in solid and dashed forms. To use this font we will be utilizing the WP plugin, WP-cufon.

At the end of it all, hopefully we will all manage to create a wonderful design!

THIS is what we hope to create!

theme image

If you have any questions you would like to see addressed, let me know so I can include them in next weeks post or get an answer right away by asking on the forum or Q&A areas of OSN!






RT & Share





Click to skip down and add your comment


Satakieli (23 comments)

Totally looking forward to this one!
.-= {shared blog entry — Faces} =-.




Sarah (2822 comments)

Yay thank you!




Danielle (17 comments)

Sarah — As always, your blog is amazing. I will be looking forward to this tutorial, as I’ve been thinking about making a move to wordpress.
Thanks!
Danielle




Sarah (2822 comments)

Aww thank you so much! If you ever need help moving to WP, let me know!




Lynda (109 comments)

Cool. MAYBE this will inspire me to do my own theme, but I highly doubt it. :) I hate design and don’t have the time to work on it. :(

Thanks for the tip about WP-Cufon, I wasn’t really sure what that was all about before.
.-= {shared blog entry — A Little Drink [145/365]} =-.




Lynda (109 comments)

Awesomesauce! I just implemented Cufon on my site. Easy peasy! Now I just have to go find some free fonts that I want to use. :)

So I also learned about the TTFTitles plugin from you and I love that. Do you still use it? If so, how do you decide when you’re going to use which implementation?
.-= {shared blog entry — Weekend Photo Focus: Headless Portraiture} =-.




Lynda (109 comments)

Also, I use Notepad all the time for .php files. Crude, yes, but sometimes it’s all I have. It’s preferable to have something with line count in it, but not mandatory. Is that why you recommend not using Notepad, or another reason?
.-= {shared blog entry — A Little Drink [145/365]} =-.




Sarah (2822 comments)

I no longer use the TTFTitles plugin as WP-Cufon is able to do so much more, I noticed the TTFTitles plugin, depending on the font, would cut off the lower half of characters, also it tends to run a very large cache which drove me nuts.

I don’t recommend Notepad mainly because it automatically converts everything to a text file instead of no extension or various other extensions like .html .php .asp, etc.

Having a line count doesn’t hurt either.




Lynda (109 comments)

Hmm. I’ve never had a problem saving my flies as .php or .css when working in Notepad. Just choose “all files” from the type at the bottom and name accordingly.
.-= {shared blog entry — Pinwheel, Pinwheel, Spinning Around [146/365]} =-.




Sarah (2822 comments)

Ah perhaps it’s that I’ve not used Notepad in over 6 years lol.




Lynda (109 comments)

Also — I just replaced TTFTitles with Cufon too. Seemed pointless to use both. :)
.-= {shared blog entry — Pinwheel, Pinwheel, Spinning Around [146/365]} =-.




Amy (1 comments)

Ooooh, I am so excited for this! :D
.-= {shared blog entry — Getting My Life Back} =-.




Sarah (2822 comments)

I’m glad! It should be fun at least!




[…] at OneStarryNight just started a new series on Creating Your WordPress Theme, so maybe that will inspire me to stop being lazy and create something from […]




Keeshia (69 comments)

YAY!! I’m excited to see how this goes and I’ll be following along :)
.-= {shared blog entry — Wordless Wednesday #5: Found & Growing} =-.




Sarah (2822 comments)

Yay awesome!!




liz (35 comments)

look at you with your tutorials! What a great idea do to a series!
.-= {shared blog entry — A Little Taste of New Orleans} =-.




Sarah (2822 comments)

Thank you! Hopefully it helps someone lol.




Hillary (3 comments)

I don’t think I’ll be creating my own theme, BUT understanding how this all works helps me in general when figuring out how to tweak my themes and just understand all this tech stuff in general.

Thanks so much – you rock!




Sarah (2822 comments)

Oh yes! Just knowing how to do minor adjustments to a pre-made theme is SO helpful!!




Kristin Glasbergen (7 comments)

This is great!!! I desperately need this. I’ll look up the links and get ready to follow along.




Sarah (2822 comments)

Sweet! I will try and make sure I share all the wee links and plugins I find useful along the way!




I’m so unbelievably excited about this series! It’s obvious that I need the help. Maybe I can finally stop bugging you! lol
Thanks for stopping by and commenting on my Curious George post. He’s one crazy monkey, isn’t he? lol Have a great day Sarah.

Kristi, Live and Love…Out Loud
@TweetingMama
.-= {shared blog entry — Curious George Deserves a Time Out!} =-.




Sarah (2822 comments)

LOL you don’t bug me! Hopefully I can be somewhat useful!




Mihoriel (1 comments)

Woah. This is epic… I totally am going to follow these entries one by one and hope this helps in creating my very first, own made WP theme. Thank you very much for putting this together. I’m glad that I stumbled upon your blog!!!!
.-= {shared blog entry — Happy Belated Birthday To Me} =-.




Sarah (2822 comments)

Yay! Hopefully by the end of the series everyone will have learned a bit on how to create a personal theme instead of using a pre-made!




Debby (1 comments)

That is great information and you blog is so cool!
Happy SITS Saturday Sharefest to you. I am going to go and make my “Best Of” page. Hope you and yours have a wonderful weekend.
.-= {shared blog entry — THE NEW AMERICAN IDOL} =-.




Sarah (2822 comments)

Aww thank you so much!!! I really should make a “Best of” page too but I have no idea what content of mine is worth the title of “best” lol.




Michelle (18 comments)

Very cool! I love your choice of colors. I think I just might give this tutorial a try. Thanks so much for sharing! Peace. :)

SITS visiting & blog following.
.-= {shared blog entry — It’s Green Find Saturday! | HOMEGROWN.ORG} =-.




Sarah (2822 comments)

Yay! I can’t wait to see everyones results at the end of the series!




Maureen (32 comments)

Thank you for this Sarah! I had installed Cufon but still confuse of how to use the font just for a drop cap on the blog entries. Will play around with it more :D
.-= {shared blog entry — Weekly Round Up} =-.




Sarah (2822 comments)

Oh I will touch on the drop cap once we get to the index.php portion of the tutorial series!




Maureen (32 comments)

YAY I can’t wait! Thank you for doing this! :D
.-= {shared blog entry — Weekly Round Up} =-.




Lindsay @ Just My Blog (3 comments)

Oh I am really looking forward to reading the rest of this series! I am DYING to learn how to create in CSS/XHTML. Blogger was easy, but WordPress is prettier and I want to know how! Thanks for the tutorial!
shared blog post — 5 Blogs I Love






Commenting Guidelines

Basics

Once your comment is posted it then is the property of OSN. I can edit, format, reuse or delete the comment as I wish, or display it for as long as I wish. I will not necessarily offer reasons or any warning why I have altered or deleted a comment.

Occasionally your comment light be held for moderation, it's not done on purpose, but sometimes WordPress light be confused, I will manually approve your comment as soon as I can, and apologize for the delay.

Email Addresses

Correct email addresses are required. Email addresses will never be published. Email addresses will not be shown in comments. Please leave your correct email address (as in youNOSPAM@domain.com or youREMOVE@domain.com are not correct) it is so I have the ability to reply to your comment via email. I will edit out the NOSPAM or REMOVE in the email field.

What is not acceptable

Profanity, poor spelling and grammar, personal attacks, and off-topic comments.

Avatars

The avatars that are shown are via Gravatar. If you do not have one associated with your email address it will show a default image, however I suggest you sign up to get one since many blogs use this feature!

Commenting Additions You light use the following mark-up within your comments. I only permit XHTML mark-up at this time. Line breaks are converted automatically.
(<em> <del> <strong> <pre> <code> <blockquote>)

Leave a Reply




CommentLuv badge



socialsocialsocialsocial

The Blurb
I'm Sarah, mom of two hardcore boys, Daniel (10yrs) & Tristan (2yrs). I'm passionate about Attachment Parenting & photography. Why don't you learn more about me! Follow me on Twitter, stay up to date using the RSS feed or even connect with me on FaceBook!
The Button
button

Search Osn

Enter your email address to subscribe to OSN and receive notifications of new posts by email.

Join 8 other subscribers

Recent Posts

bloglovin




footer

Random Buttons
Marf Mom Live and Love Out Loud BabyBabyLemon Tales of a Kitchen Witch