Hope you know that 9lessons blog is power by google blogger platform and I am not paying any hosting changers from last 4 years. I strongly suggest blogger is the perfect platform for blogging (present your ideas), but you have to do few coding changes for better results. My first success was I did customized blogger template completely, so take a look at this post and implement for great results.
Go to your blog left menu open Template -> Edit HTML
IF ELSE Condition
If you notice I am displaying a top banner(Wall Script) advertisement on Article Pages. You want to display specific items on Article Page, use the following condition.
<b:if cond='data:blog.pageType == "item"'>
// Display content on Article Page
<b:else/>
// Display content on Home Page
</b:if>
// Display content on Article Page
<b:else/>
// Display content on Home Page
</b:if>
If you want to display any specific thing on Home page, use following code.
<b:if cond='data:blog.pageType != "item"'>
// Display content on Home Page
</b:if>
// Display content on Home Page
</b:if>
Sections
You can add different sections with unique ID attribute name on sidebar part.
<b:section id='RecentPosts'>
</b:section>
<b:section id='MostPopularPosts'>
</b:section>
<b:section id='BuySellAds'>
</b:section>
</b:section>
<b:section id='MostPopularPosts'>
</b:section>
<b:section id='BuySellAds'>
</b:section>
You can find out those sections in Layouts part.
While clicking on Add a Gadget you will find a popup contains following widgets and then add widgets to sections part.
SEO - Search Engine Optimization
For better search results you need to modify <title> part with following code snippet. This code helps to include article title as a page title.
<b:if cond='data:blog.pageType != "item"'>
<title>Website Title</title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>
<title>Website Title</title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>
Expand id="post" part.
Article Title
Replace data:post.title part with following code.
<b:if cond='data:blog.pageType != "item"'>
<h2>
<a expr:href='data:post.url'><data:post.title/></a>
</h2>
<b:else/>
<h1>
<data:post.title/>
</h1>
</b:if>
<h2>
<a expr:href='data:post.url'><data:post.title/></a>
</h2>
<b:else/>
<h1>
<data:post.title/>
</h1>
</b:if>
Adsense inside Blog Post
Blogger is allowing maximum three adsense advertisements inside article part, use the following code about the <data:post.body/> part. Go to Layout part click Blog Post edit and modify your ads.
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:post.includeAd'>
<div>
<data:adEnd/>
<data:adCode/>
<data:adStart/>
</div>
</b:if>
</b:if>
<data:post.body/>
<b:if cond='data:post.includeAd'>
<div>
<data:adEnd/>
<data:adCode/>
<data:adStart/>
</div>
</b:if>
</b:if>
<data:post.body/>
Social Buttons
Generate social buttons code using specific develop tools and prefix expr: for hyper links.
// Linkedin Share Button
<script data-counter='right' expr:data-url='data:post.url' type='in/share'/>
// Google Plus Share Button
<div class='g-plus' data-action='share' data-annotation='bubble' expr:data-href='data:post.url'/>
// Twitter Button
<a class='twitter-share-button' data-count='horizontal' data-via='TwitterUsername' expr:data-text='data:post.title' expr:data-url='data:post.url' href='http://twitter.com/share'/>
// Facebook Button
<iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=box_count&show_faces=false&width=450&action=like&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:60px; height:70px'/>
<script data-counter='right' expr:data-url='data:post.url' type='in/share'/>
// Google Plus Share Button
<div class='g-plus' data-action='share' data-annotation='bubble' expr:data-href='data:post.url'/>
// Twitter Button
<a class='twitter-share-button' data-count='horizontal' data-via='TwitterUsername' expr:data-text='data:post.title' expr:data-url='data:post.url' href='http://twitter.com/share'/>
// Facebook Button
<iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=box_count&show_faces=false&width=450&action=like&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:60px; height:70px'/>
Javascript Support files
Include following support JS files within the tag HEAD or about the </BODY> end tag.
// Linkedin
<script src='http://platform.linkedin.com/in.js' />
// Google Plus
<script src='http://apis.google.com/js/plusone.js' />
// Twiiter
<script src='http://platform.twitter.com/widgets.js'/>
// Facebook
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/>
<script src='http://platform.linkedin.com/in.js' />
// Google Plus
<script src='http://apis.google.com/js/plusone.js' />
// Twiiter
<script src='http://platform.twitter.com/widgets.js'/>
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/>
Remove Default Header
Just include the following code in CSS to hide default blogger navbar.
#navbar {
display: none;
height: 0;
visibility: hidden;
}
display: none;
height: 0;
visibility: hidden;
}
Custom domain setup please check Technology behind 9lessons.info
If you have any queries related to blogger, please comment here.
Woow awesome blogpost! I think the power of blogger is underestimated a lot, bit thuis really opened my eyes fort blogger!
ReplyDeleteWonderful Tips :) I'm Little confused About 'data:post.title' How to Do This?
ReplyDeletewonderful post sir!
ReplyDeleteyou are the role model for bloggers!
Great Post @Srinivas , Till now I used to think “To use blogger hosting would be really boring” but you changed my mind completely. A little research can even make a blogger hosted blog fantastic like yours :)
ReplyDeleteAny idea about how to achieve caching in blogger?
ReplyDeleteIs there a demo where can see the design/layout and how it looks ?
ReplyDeleteFirst of all thanks alot to have such awesome articles on this website... Hats off to you guys. I am a CSS designer, I am searching for custom wordpress template design tutorials step by step as we design in CSS.
ReplyDeleteI hope you guys are really gonna help me out.
sir demo may be also there......
ReplyDeleteVery helpful article
ReplyDeleteexcellent...
ReplyDeleteSrinivas sir,
ReplyDeleteIs is possible to have details tutorials on wordpress template from the scratch...? step by step...
If possible !
The awesome blogger template design tutorial ever
ReplyDeletehow can we skip .blogspot from google blog
ReplyDeleteI was just blown out after reading this post cos i have been paying since many years.
ReplyDeletegreat writing, thank you!.Question, how to remove the blogger.com default header bar in the blog?
ReplyDelete@Sreevasthsa Removing Default header updated in tutorial.
ReplyDelete@Thalupula Sreenivas Blogger is providing custom domain setup, please check in settings.
ReplyDeleteThanks for this amazing and helpful blogpost template tutorial!
ReplyDeleteHey good one! why dint i think of it, display:none. Thank you agian! :)
ReplyDeleteIf you dnt have a host , how did you manage to get sub domains like http://demos.9lessons.info/ please let us know
ReplyDeleteThanks
Nice- but, Adsense into post is not working! Please help!
ReplyDeleteNice Post :)
ReplyDeletethanks for you efforts.
ReplyDeleteHey it's nice. It's something different from basic view of blogs and I like your blog theme. Thanks for sharing.
ReplyDeleteHi, the SEO part is very useful. But confused what exactly I need to add, means keywords or title of the blog.
ReplyDeletethis tamplate working good but some problem create when upload only web template then only open in pc but do not open in mobile or ipod.....error apache 404 mobile/index.html do not find..................please help me
ReplyDeleteCan you please provide your "Template",
ReplyDeleteyour template is Ausum, it will be of great help
nice one bro
ReplyDeletethanks for you efforts Sri :)
ReplyDeleteHow to create Related posts widget ?
ReplyDeletethanks for the tutorial...really helpful
ReplyDeleteSuperb
ReplyDeleteI want to get ad sense on my blogs so what to do ..?
Srinivas you are just awesome!! Thank you for this blogger tutorial..
ReplyDeleteThanks Srinivas The Way Of Writing An Article Is Awesome And You Write Awesome About blogger template design Thanks
ReplyDeleteThanks man..! very good info
ReplyDeleteThanks for the tutorial
ReplyDeleteTo display Adsense using this code, you need to enable display ads in post from Dashboard>> earning tab.
ReplyDeleteThanks for your tutorial, it's really useful :)
ReplyDeleteNice To see such kind of blog it is useful for me
ReplyDeleteCan You Please Post About Making Sidebar ? Please
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeletethanks bro, i will also start blogging in Blogspot platform. and use blogger default templates. so this post are so helpful me
ReplyDeletethanks for sharing useful post, i like your tutorial :)
ReplyDeleteBro thanks for this post.
ReplyDeleteOne things I would like to know, is blogger default template are seo friendly? please bro answer me
Hey bro,
ReplyDeleteThanks for awesome tutorial, will try it once definitely.
Thank you :)
Wonderful and attractive collection of responsive blogger templates with uniqueness.
ReplyDeleteThankful for you.
Samtaa Jain
helpful post
ReplyDeleteAmazing post I love it
ReplyDeletegud post for new bloggers
ReplyDeleteSir I am a very big fan of you. How you know these complex things. I also want to learn these. Inspired from you I also created a PHP login and register system. I shall be so glad sir if you check it out.
ReplyDeletein If else condition, there is not mentioned where to put codes
ReplyDeleteVery Good theme customization
ReplyDeletethanks
nice tutorial
ReplyDeleteReally a great aarticle. Thanks for sharing such informative article.
ReplyDelete