This tutorial will cover the steps needed to create your own blogger template. Many people have used blogger to run blogs and have wondered how they can make their own theme to use with it. There are a very few hard to find guides on how to do this, so I've decided to take up the task to help as many people as I can, create one. Incase you are skimming over the content, this article is teaching you "How to create a blogger / blogspot theme"
To create a blogger template, you will need a graphic editor (Such as Photoshop, GIMP, or even Paint will do) to create images for backgrounds, post headers, sidebars, etc.. We will get to that later. You will also need an idea or vision about what you want to create. Without that, you are just wasting your time and electricity. Lastly, you will need to know about C.S.S (Cascading.Style.Sheets) and how to operate them. If you do not know how to do that, you cannot apply interesting effects to your newly designed template (Such as: Positioning pictures or text, creating repeated backgrounds, moving around pictures and text and more). A great guide on how to get started with this is available here.
Once you have got everything you need, you should start the C.S.S Framework by putting properties such as
body[ background-color: #000000; margin: 0 auto; font-family: â€œTrebuchet MSâ€, Arial, Helvetica, sans-serif; font-size: 14px;}
#title [ font-size: 32px; color: #000011; }
so-on and so forth. A basic list of these tags that were taken from Blogger's simple white theme are available here: (PDF File) XML Tags Blogger List Of CSS. An easier way to do this would be to find a theme that you like and copy and paste the C.S.S, editing it along the way so that time is saved. The only problem with doing that is that every theme is engineered differently so the tags will change.
After configuring your CSS Stylesheet, you must piece it together in HTML. This can be achieved using similar structures.
<div id='main-wrapper'> <b:section class='main' id='main' showaddelement='no'> <b:widget id=â€™Blog1â€² locked=â€™true' title='Blog Posts' type=Blog'/> </b:section> </div>
Do not forget to reference blogger templates that have already been created for the required widgets that you are supposed to put in certain spots. Without doing this, you could not complete making your own template.
Now comes the grueling part that you can either do yourself which could take hours to finish, or copy from another site and edit accordingly. Blogger is configured using widgets. All your posts are just one big widget hence the code up there. An Example of the code that you could type yourself or copy is:
<div class='post-footer'> <p class='post-footer-line post-footer-line-1'><span class='post-author'> <b:if cond='data:top.showAuthor'> <data:top.authorLabel/> <data:post.author/> </b:if> </span> <span class='post-timestamp'> <b:if cond='data:top.showTimestamp'> <data:top.timestampLabel/> <b:if cond='data:post.url'> <data:post.timestamp/> </b:if> </b:if> </span> <span class='post-comment-link'> <b:if cond='data:blog.pageType != â€œitemâ€'>
<b:if cond='data:post.allowComments'> <b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if> </b:if> </b:if> </span> <span class=â€™post-iconsâ€™> <!-" email post links -"> <b:if cond=â€™data:post.emailPostUrlâ€™> <span class=â€™item-actionâ€™> <span class=â€™email-post-iconâ€™> </span> </span> </b:if>
<!" quickedit pencil "> <b:include data=â€™postâ€™ name=â€™postQuickEditâ€™/> </span>
<p class=â€™post-footer-line post-footer-line-2â€²><span class=â€™post-labelsâ€™> <b:if cond=â€™data:post.labelsâ€™> <data:postLabelsLabel/> <b:loop values=â€™data:post.labelsâ€™ var=â€™labelâ€™> <data:label.name/><b:if cond=â€™data:label.isLast != â€œtrueâ€â€˜>,</b:if> </b:loop> </b:if> </span>
That code translated into human terms controls what goes at the bottom of every postâ€¦In this case its the author, time, comment link and labels. To extract the code from other templates, just click the â€œExpand Widget Templatesâ€ button and it is below the stylesheet on a certain template.
Most of creating a template is just trial and error. If you look at the code and try to piece it together bit by bit.. you will eventually succeed and reap the rewards of creating one. I hope this tutorial has covered everything that you will need and comments/suggestions would be greatly appreciated as it would be great if this tutorial would become a one-stop source for all of the Blogger CMS(Content Management System) users.