Code a Theme
Please Read
1. This tutorial is written for Behind a Mask, not for your site
2. If this tutorial helped you please link us back
3. Do not copy and paste this tutorial and put it on your site
1. This tutorial is written for Behind a Mask, not for your site
2. If this tutorial helped you please link us back
3. Do not copy and paste this tutorial and put it on your site
Many people have asked me how to customize wordpress. This tutorial teach how to change the templates and such.
YOU SHOULD HAVE WORDPRESS INSTALLED ALREADY. IF NOT, click here to learn how to install wordpress
Also you must already know how to code your layout.
If you want to edit a current folder please skip this step.
First make a new folder under ‘wp-content/themes’. Now copy all the files from the ‘default’ folder and paste them into the new folder. To do this just right click -> download -> select folder and choose a folder for these files to go in. Then upload them to the new folder.
Now open ‘header.php’. The necessary changes you have to make are:
Open ‘footer.php’. You may delete all that and just add your own footer coding.
Ok, now open ‘index.php’. Here is where you edit the templete when visitors first visit your site.
IF YOU DON’T WANT YOUR TITLE TO BE A LINK delete everything between your header code and add this ‘< ?php the_title(); ? >‘ without the spaces so it should be ” and the beginning and end of the code.
Now that you have edited your index page, I suggest you remember how you customise it. Because now, you have to edit archive.php and single.php in the similar manner. Archive.php is the page for when people click on category or days on your calendar (if installed). You know when you click on ‘comment’ you see the blog post AGAIN and then the comment form? Well ‘single.php’ represents that blog post.
Now open ‘comments.php’ . The coding looks pretty straight forward. The first part you cannot edit. Then underneath ‘you can start editing here’ is the layout of the way the comments are posted. Change it anyway you want.
For some reason, in the defaults folder, the comments.php doesn’t show the author and the link of the comment. So I suggest you to go to the ‘classic’ folder and copy from here:
And replace this:

Now just edit that bit of code you just pasted and customise it. Should be pretty straight forward.
Now the last page that is necessary to edit is the style.css
DON’T JUST ADD YOUR OWN STYLESHEET IN. That will NOT work. You have to replace bit by bit. For example, at the beginning, you see ‘BODY’. Replace it with YOUR own body code. Know what I mean? However there are some codes you should not delete :
So this brings the end of the wordpress tutorial and I hope that you could follow on this long tutorial.


April 24th, 2010 @ 6:58 pm | Quote
Wow, That was really helpful, Thanks I have been trying to figure it out for a while now, Thanks
April 30th, 2010 @ 3:22 am | Quote
Thank so much for this
July 20th, 2010 @ 7:48 am | Quote
Hi!
I decided to post here since it’s subject appropriate. I coded my layout but for some reason my sidebar does not float right on my pages but only on the home page it shows up right. Do you have any idea on how i could fix it? Thank you in advance :)