October 16, 2012

Widgets

Create Static HTML Design Of your Blogger Template


design blogger templateThis is part 2 of our series "XHTML to HTML" . We have already learned how to turn blogspot's layout into blank HTML page but we have no yet shared how to remove the dynamic XML tags alone leaving behind the stylesheet, scripts and html design. In today's tutorial I will try to share the basic way of understanding a websites core structure by identifying the important div sections that make up the structure. I hope you have followed part one of the series and have downloaded your blogspot template. I also assume you have Dreamweaver or Codelobster installed on your desktop computers or laptops.


Live Demo
XHTML To HTML
Part2: Create a HTML Design Of your Blogger Template
Part3: In progress

Identify the Div Sections

Div sections are division blocks or containers that hold elements inside it to layout a web page. The <div> tag defines a division or a section in an HTML page. It starts with a <div> tag and ends with a </div> tag.  When a div section is styled, we add the CSS ID or class to it as follows:

If you want to introduce a class in Div, do this:

<div class="class-name">

...

...

..

</div>

 

If the Div section is styled using an ID, it will look like this:

<div id="id-name">

...

...

..

</div>

In CSS code a class always starts with a dot at its beginning and Id starts with a hash sign as shown below:

For class:

.class-name {

---

---

-

}

 

 

For Id:

#id-name {

----

--

--

}

 

Now when you have understood what a Div section is, you will be able to identify these slices (div) that define your overall blog layout.

  1. View your blog either in Firefox or Chrome. I prefer Firefox
  2. On an empty section (the background) of your blog right click and choose "Inspect Element"

inspect element

    3. Two windows will open. The bottom window will highlight the core HTML of the blog and the area on your right highlights the CSS.

firefox inspect element

In the HTML section you will see important div sections. If you click any div tag, all html inside it will expand and when you click back it will contract. The important thing to note is what section is highlighted on your blog when you click a div. Note down that section for that particular div and save it in a notepad. Start from Divs at the top to divs at bottom. Go in sequential order.

For example if I click on the div tag for mbt highlighted below as <div id="wrap">  the entire container holding all the blog contents except the top-sticky-bar are highlighted. That's how I identified what this div does and what sections can be styled using it.

highlighted div section

Use the same method to identify the divs for Header, Navigation, Post container, Sidebar Container and finally the footer. The divs must go in order and keep track of which div is nested under another div. For example in my case the navigation, header, post body and sidebar all comes under the wrap div. So I will insert the remaining divs inside it.

This may sound a little techy for people not familay with HTML tag priorities but for developers who wish to understand how to create a clone design the method above can't be more clear than this.

Remove the Dynamic Tags

  1. Use Dreamweaver or Codelobster to open the xml file you downloaded
  2. Find each div tag and edit the code inside each one of them.
  3. For example for the outer-wrapper div tag I delete the div tags for post body and sidebar leaving the entire area vacant and then I add the contact form inside it. Visit our contact page to see the wide area with no sidebars and post-section.

identify the nested div containers

The dynamic code is easy to identify because all widgets have this basic structure:

<b:section ........................>
<b:widget ......................................../>

<b:widget ......................................../>
<b:widget ......................................../>

 

</b:section>

 

A widget container is initiated using the b:section tag and widget content is initiated using the b:widget tag. Find them all and replace the b:section tags with static div tags like the following:

 

<div ........................>


Delete all code inside B:widget tags found here

 

</div>

 

Once you are done with this, you will find your template looking neater and getting in shape if you are using code lobster or dreamweaver. It took me 4 hours to clean up MBT's code so it should not take you long. Its lengthy process but extremely interesting and worth trying. Once you have learnt how to do this, in our next part, I will teach you how to add a PHP contact form inside the Cloned Blogger template that looks exactly like the original blog, giving the user a great experience. 

I know you have tons of questions!

Of course this method is a little techy for newbies and would have given a headache to most of you but you may not panic and just post me a comment. I will be at your service. I reply late but I do reply! =)

I wish this tutorial may help you better understand the possibilities of customizing the Google hosted free blogs. There is no end to Blogger customization and you must try every possible tutorial that comes along your way because only Blogspot layouts can turn you into a brilliant web developer. Peace and blessings buddies. :)




If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »

29 comments:

Rounak Baral on Oct 16, 2012, 12:17:00 AM said... #

One more effective post. I am afraid that after you complete the series the no. of people who can copy other's template will surely be increased..

Syed Faizan Ali on Oct 16, 2012, 12:31:00 AM said... #

Well, Nicely Explained Brother. Indeed a great way of curating a Template. However, as the things are getting forward it will get too complicated for a person to understand, especially a nut like me lol. Nice to see some mind soaking posts back on MBT. Cheers buddy

@Rounak Baral

Dude I Don't think so that people can copy themes. Because its too complicated. You have to try learn a lot before you can copy themes. This tutorial series might prove out to be a nightmare if you don't know what is HTML CSS and especially XML ;)

Jay Ryan B. Macabato on Oct 16, 2012, 12:41:00 AM said... #

Great post.
I learned a lot from this post.
Thank you so much.

More Blog Tools

www.MoreBlogTools.com

Navneet Viswanadha on Oct 16, 2012, 9:17:00 AM said... #

Awesome Post . Even I am starting a series which is a little similar to this , so please do visit www.techravers.com .

Regards,
Navneet
www.techravers.com

Siddharth Sinha on Oct 16, 2012, 10:26:00 AM said... #

Nice Post Mustafa Bhai,

How To Use Android Phones As Webcam for PC [via USB and Wireless ]

Usama Sonu on Oct 16, 2012, 11:10:00 AM said... #
This comment has been removed by a blog administrator.
Akhil abraham on Oct 16, 2012, 12:40:00 PM said... #

that's really awesome...and thanks for a great post ..

Akhil Abraham
Blog:All Blogging Tools.com

Abu Shaleh on Oct 16, 2012, 2:43:00 PM said... #

Nice and Usefull Article. Waiting for next part :)

SpiceUp Lite - Optimized Premium Blogger Template

Rahul Kashyap on Oct 16, 2012, 2:52:00 PM said... #

Awesome Thanks for sharing this :)


Regards
Rahul Kashyap
Blog:
SDMMovies.com
movies4u.us

Zahid Ali Raja on Oct 16, 2012, 4:24:00 PM said... #

thanks for this awesome series i must say you r the guru of tip n tricks keep it up ;)

Regards:
Myblogginglab (myblogginglab.blogspot.com)

Sri ram on Oct 16, 2012, 6:10:00 PM said... #

Nice post and Good explanation Brother..
My New Blog post: TOP 8 STEPS TO BOOST WINDOWS 7 SPEED AND PERFORMANCE

Pramod sharma on Oct 16, 2012, 6:24:00 PM said... #

Mind blowing and Amazing.I have no words to explain my feeling.It is the information, I will not going to get anywhere on internet.This series is teaching us the every single bit of basic languages and xml.A best comeback Mohammad Sir.Looking for third post of this series.Wooooo!
Get Domain For Free-giveaway

Pramod sharma on Oct 16, 2012, 6:36:00 PM said... #

One question what is user agent style sheet and it is not editable?
What to do.

A--l--I AkBar on Oct 16, 2012, 6:59:00 PM said... #

Just One word "Excellent"
Very nice Tutorial with Detailed Info and Steps..!
thanks So Much Mohammed Bhaijaan
BlogEclipse.com- SEO and Money Making Blog

TricksMe.in-technoloGy Blog

Kabir Khan on Oct 16, 2012, 8:38:00 PM said... #
This comment has been removed by the author.
Kabir Khan on Oct 16, 2012, 8:40:00 PM said... #

Thanks bhai for sharing all this useful stuff with us!
I wanna know that what are these <b : section etc tags ? .Can we use these tags in a normal html document to make it dynamic.
I mean that is a blogger template made dynamic by the use of these tags? Cuz a normal html doucment containing no php etc is a static web page or a file/template etc.
And with what are these tags linked?
Thanks, ( I know some of the quesions may sound noobish but what can I do, If they are irritating me lol!)

Usama Sonu on Oct 17, 2012, 1:42:00 PM said... #

@Admin

Why you deleted my comment. What the wrong was it???

FAHEEM on Oct 17, 2012, 9:57:00 PM said... #

I learned much more to read this post thank
www.expressivehealth.com

best regards,
Faheem Alam

Harit dagar on Oct 20, 2012, 10:29:00 PM said... #

Want to download windows 8 pro/entre.so what you are waiting for you must logonto: www.haritdagar.co.cc

Niketan Patil on Oct 23, 2012, 2:24:00 PM said... #
This comment has been removed by the author.
Niketan Patil on Oct 23, 2012, 2:33:00 PM said... #

hi Mohammad,

Nik here from wildhacker, I wants to change home page image size of blog post as like your website home page. Want to set image size as default.

Please tell me how i can did it?

thanx in advance...

tec kop on Oct 23, 2012, 4:00:00 PM said... #

awesome post...can you review or suggest if any errors in my blog...please i want to apply for adsense so...

marley on Oct 27, 2012, 3:12:00 AM said... #

Helpful and useful blog I have found on the internet keep writing the blog.

Website design training

Namita Choudhary on Oct 31, 2012, 1:01:00 AM said... #

Thanks a lot for this post. i really enjoyed reading this.

New Blogger Tips

www.NewBloggerTips.com

Paul Evans on Dec 14, 2012, 8:37:00 PM said... #
This comment has been removed by the author.
Paul Evans on Dec 14, 2012, 8:39:00 PM said... #
This comment has been removed by the author.
Uzaif Nilger on Jan 1, 2013, 8:36:00 AM said... #

nice post
download android app on
www.androidallapp.blogspot.com

InnomaxMediaLLP on Feb 6, 2013, 4:38:00 PM said... #

I found your website perfect for my needs. It contains wonderful and helpful posts. I have read most of them and got a lot from them
Web Design Company

searchmoako on Feb 14, 2013, 1:01:00 PM said... #

please continue this

Click Here To add Comment

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. No cheesy/spam Comments tolerated Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

Support Us

If our Tutorials have helped you a little, then kindly spread our voice using the badge below:-

or try a Beautiful Banner


Widgets

 
  • MBT Icons and buttons

    Icons and Buttons

    Our resources have been successfully downloaded over 10K times and found almost every where. Get yours!

  • choosing webhost for a blog

    Why HostGator?

    Learn Why we chose HostGator as our Web Host and find discount coupons to kick start your blog today!

  • SEO Settings for blogger

    ALL IN ONE SEO PACK 2012

    Learn every single SEO tip that will boost your blog's ranking and organic traffic. We got them all!

  • Blogger widgets and plugins

    Visit MBT's Blogger LAB

    Why not take a tour of all great Blogger widgets published so far? You Name it we have it!

  • become a six figure blogger!

    Become a SIX FIGURE BLOGGER

    Learn what it takes to become a successful entrepreneur and build a living online!

About The Author

Hi! I am Mohammad, a certified SEO Consultant, Pro Blogger, Computer Engineer and an addicted Web Developer. Read More..

Recipes

SEO Affiliate Marketing Social Media

Make Money Online Web hosting

Blogging Tips Web Designing

Plugins and Widgets Blogging Ethics

Recent Comments

Popular Series

Powered by:

My Blogger Tricks © 2013. All Rights Reserved | Contact |