How to Create Simple Blogger Template Easily?


To create successful blog, it needs to create blogger template more attractive and looks more professional. Even you can buy professional blogger template on the web, you may want to create blogger template by yourself for your blog. Creating a professional blogger template is more challenging task, but if you have some knowledge on HTML, XML, CSS and JavaScript, it is possible to create professional blogger template easily by yourself. In this series of tutorial, I am going to teach you basic to advanced steps to create blogger template. Today I am telling you "steps for creating a simple blogger template" with describing basic elements and along with its corresponding style sheet codes.


Step1: Preparing demo blog for creating blogger template



To test blogger template you have created, at first you need to set up a blogger blog and have to add some posts on the blog. To create a blog, go to blogger home page, log in using your Google user name and password and then click on create a blog link to get started. Write posts for a blog by clicking on create a new post button from the blogger dashboard.


Step2: Creating basic elements for blogger template


Open Notepad file write the codes according to the following format and save it as .xml extension.

# Creating XML Part


At first, add the following codes for  Document Type Deceleration(DTD) on XML part.




# Creating Header Part


After that, add the following header elements like head and title of the blog.


<br /><b:if cond='data:blog.pageType == "index"'><br /><data:blog.pageTitle/><br /><b:else/><br /><b:if cond='data:blog.pageType != "error_page"'><br /><data:blog.pageName/> | <data:blog.title/><br /><b:else/><br />Page Not Found | <data:blog.title/><br /></b:if><br /></b:if><br />

# Creating CSS Part


Add custom css codes for your template in the following format. The css codes must be placed inside and ]]>
tag.

body{
font:normal normal 14px Verdana,Geneva,sans-serif;
color:#000;padding:0 40px 40px 40px;
background:#fff;
font-size:14px;
}
#outer-wrapper{
CSS for outer-wrapper
}
#header-wrapper{
CSS for header-wrapper
}
#titlewrapper{
CSS for titlewrapper
}
#descriptionwrapper{
CSS for descriptionwrapper
}
#menuwrapper{
CSS for menuwrapper
}
#contentwrapper{
CSS for contentwrapper
}
#mainwrapper{
CSS for mainwrapper
}

# Creating a Menu 


To create menu for a blog, add the code in the following format. Replace URL and name of the tabs. 


# Creating blog content

To add main blog content part, add these codes to create a widget named Blog1.



















Step3: Creating gadgets on sidebar and footer.


To create sidebar and footer and to add widgets  for them add these code, which allows you to add widgets on sidebar and footer.





Step4: Installing blogger template on required blog.


After creating a code file on Notepad in XML format, test it on demo blog. To install prepared template, click on backup and restore button from template option on blogger dashboard. Click on download full template, the xml file will be downloaded. Then go to the required blog then go to Template  ›  Backup / Restore option and browse and upload that xml file. The template will be applied on your blog.




Related Posts: