Close

×

Tutorials

Blogger Tutorial

Start Blogger

Templates

Blogger Templates

Recent Post Popular Post Featured Post Related Post

nayan ad

Share


Like
×

Top Navigation Menu

×

Search v5Blogger

Powered by Google

<b:section>

The Tag for building Blogger template

The easy way to learn & create blogger template from sketch.

DEVELOPMENT TUTORIAL

Build Blogger Template

LEARN IT »
<html>
<head>
<title><data:blog.pageTitle/></title>
<b:skin/>
</head>

<body>
  <b:section id='main'/>
</body>
</html>

W3.CSS

The framework for desiign Blogger template

Quickly design responsive and flat blogger template from sketch.

DESIGN TUTORIAL

Design Blogger Template

LEARN IT »
<header class="w3-padding w3-blue">
  <h1><data:blog.title/></h1>
</header>

<b:section class="w3-container" id='main'>
  <b:widget id='Blog1' type='Blog'/>
</b:section>

<footer class="w3-green">
  Footer note text
</footer>

W3.CSS

The framework for desiign Blogger template

Quickly design responsive and flat blogger template from sketch.

DESIGN TUTORIAL

Templates

The collection of Blogger widgets & templates

Simple way to add template in from our template collection.

WIDGET TEMPLATES

Blogger Related Post Widget

LEARN IT »
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://drive.google.com/uc?export=download&id=0ByRQqYLl1l6MNkdFcDNPa29RbGs"></script>

ICON

Add Font Awesome icons in Blogger Template


LEARN ICONS

SVG

Use SVG images in Blogger Templates


LEARN SVG

Loader

Add Page loading animation for Blogger


LEARN IT


Blogger Animations

Using  Animation to Blogger Sites for  give visitors the smooth browsing experience.
  • Created with Pure CSS.
  • Smooth Animation give a ultra modern experience.

3D Horyzontal Flip


.h-flip {animation: spinner 5s cubic-bezier(0.75, 0, 0, 1) infinite; width: 80px}
@keyframes spinner { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
v5 Blogger

Hover Rotate


.h-rotate {transition: all 0.4s cubic-bezier(.8,1.8,.75,.75)}
.h-rotate:hover{transform: rotate(-5deg) scale(1.1);}

Type Text


.v5-type{ white-space: nowrap; overflow: hidden; width: 100%; animation: type 4s steps(60, end);}
.v5-type:nth-child(2){ animation: type2 8s steps(60, end);}
@keyframes type{ from {width: 0; } }
@keyframes type2{ 0%{width: 0;} 50%{width: 0;} 100%{ width: 100; } }
This is v5 Blogger. Created with W3.CSS

Bounce Animation


.bounce { animation: bounce 2s;}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-30px);} 60% {transform: translateY(-15px);} }
This is v5 Blogger

Background Color


.v5-bg {background: linear-gradient(270deg, #ffffff, #daf5dc); background-size: 400% 400%; animation: animate-color 17s ease infinite; }
@keyframes animate-color { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
This is v5 Blogger

Image Fade


.fade { opacity: 1; transition: opacity .25s ease-in-out}
.fade:hover { opacity: 0.5;}

Blogger Page Loading Animation

Use Page Loading Animation to give visitors the smooth browsing experience.
  • Created with Pure CSS & Pure Javascript.
  • Smooth Page Loading Animation.

Add Page Loading Animation in Blogger


Step 1. Add CSS

Go to Template > Customize > Advanced > Add CSS & add the code below then Save it.

/* The loader */
#v5-loader { position: absolute; left: 50%; top: 50%; z-index: 1; width: 150px; height: 150px; margin: -75px 0 0 -75px; border: 16px solid #f3f3f3; border-radius: 50%; border-top: 16px solid #3498db; width: 120px; height: 120px; animation: spin 2s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* The Page Animation */
.animate-bottom { position: relative; animation-name: animatebottom; animation-duration: 1s }
@keyframes animatebottom { from{ bottom:-100px; opacity:0 } to{ bottom:0; opacity:1 } }
#myPage { display: none; }

Step 2. Add JavaScript

Go to Template > Edit HTML. Click on the code area & press Ctrl+F. Type and search for the <body and replace the hole body tag (<body expr:class='&quot;loading&quot; + data:blog.mobileClass'>) with the code below.

<body onload='myFunctionLoader()' style='margin:0'><div id='v5-loader'/>
<div style='display:none' id='myPage' class='animate-bottom'>
<script>
window.onload = function showPage() {
document.getElementById('v5-loader').style.display = 'none';
document.getElementById('myPage').style.display = 'block'; }
</script>

Search for the </body and past </div> before it.

SVG - The Vector Image

Use SVG images to design Blogger blog & give visitors the vector experience.
  • SVG is Scalable Vector Graphics which resized at any resolution.
  • SVG graphic files are pure XML.
  • Use SVG instead of Font Awesome  icon to make site faster.
  • Use anywhere in Blogger posts, widgets & template.
Note: No uploading is required!

Use SVG in Blogger

SVG begins with <svg> which contain height to control size, viewbox to control image ratio. Path contain the d (data) element which is the main graphics.

<svg  height="32" viewbox="0 0 32 32"><path d="M27.4,18.3L16,6.5L4.6,18.3V32h8.9v-9.6h5.1V32h8.9C27.4,32,27.4,18.3,27.4,18.3z M27.4,11V0.1h-5v5.6L16,0 L0,16.1l1.8,2.7L16,4.3l14.2,14.5l1.8-2.7L27.4,11z"/>Home</svg>
Home

Inline Styling

Use fill to set background color, stroke to set outline color & stroke-width to set width of outline.

<svg height="42" viewBox="0 0 32 32"><path fill="#3b5998" stroke="black" stroke-width="1"  d="M0,0v32h17.1V19.6h-4.2v-4.8h4.2v-3.6c0-2,0.6-3.6,1.7-4.7c1.1-1.1,2.6-1.7,4.5-1.7c1.6,0,2.8,0.1,3.7,0.2v4.3l-2.5,0 c-0.9,0-1.6,0.2-1.9,0.6c-0.3,0.4-0.5,1-0.5,1.7v3.1h4.8l-0.6,4.8h-4.1V32l9.9,0V0H0z" />Facebook</svg>
Facebook

Also working like style="fill: blue; stroke: pink; stroke-width: 5; opacity: 0.5" in path tag.

CSS Styling

Use CSS to style SVG image.

<style>
.svg-twitter { height: 40px; }
.path-twitter {fill: gray; fill-opacity:0.1; stroke: DeepSkyBlue; stroke-width: 0.5;}
svg:hover .path-twitter { fill: #55acee; fill-opacity:1; stroke-opacity:1; }
</style>

<svg class="svg-twitter" viewBox="0 0 32 32"><path class="path-twitter"  d="M0,0v32h32V0H0z M15.33,20h5.33c1.47,0,2.67,1.19,2.67,2.67c0,1.47-1.19,2.67-2.67,2.67H14c-2.95,0-5.33-2.39-5.33-5.33 V8.67C8.67,7.19,9.86,6,11.33,6S14,7.19,14,8.67v2.67h6.67c1.47,0,2.67,1.19,2.67,2.67s-1.19,2.67-2.67,2.67H14v2 C14,19.4,14.6,20,15.33,20z" />Twitter</svg>
Twitter

Working hover css in a link is a svg:hover .path-twitter

Get Path D for SVG

  1. Download a SVG image. For SVG icon use IcoMono
  2. Open SVG file using notepad.
  3. Copy the viewBox & Path D value
  4. And past as like below.
<svg height="42" viewBox="Past viewBox Value"><path d="Past D Value" />Name</svg>

Marge Path D for SVG

  1. If SVG file contain multiple Path D value then Open with Adobe Ilustrator.
  2. Press Ctrl+A to select all & Ctrl+8 to make compound path.
  3. To recolor individual object use direct selection tool (Press A)
  4. Press Ctrl+S to save it.
<svg height="51px" viewbox="0 0 514.768 514.766">
 <path d="M198.602,6.733c-61.081,14.269-113.787,50.292-149.529,99.45h248.979L198.602,6.733z" id="path-0">
 <path d="M316.165,508.032c61.081-14.27,113.786-50.291,149.528-99.449H216.715L316.165,508.032z" id="path-1">
 </path></path></svg>

Font Awesome - Icon Set

Use icon to design Blogger blog by Font Awesome.
  • Font Awesome gives you scalable 634+ vector icons.
  • Can be customized with CSS (size, color, shadow, etc.)
  • Build-in CSS library for Animation & more.
  • Add icons anywhere in Blogger posts, widgets & template.
Note: No downloading or installation is required!

Add Font Awesome in Blogger

Go to Template > Edit HTML & past the code after  <head> tag.

<link href='http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' rel='stylesheet'/>

Use Font Awesome in Blogger

Use class fa and fa-NAME in <i> or <span> elements to add icons. List of available icons here.

<i class="fa fa-home"></i>
<i class="fa fa-search"></i>
<i class="fa fa-bars"></i>
<i class="fa fa-thumbs-o-up"></i>

Styling CSS

Use CSS to style Font Awesome icon.

<i class="fa fa-facebook-square" style="font-size: 48px; color: #3b5998"></i>
<i class="fa fa-twitter-square" style="font-size: 48px; color: #55acee"></i>
<i class="fa fa-google-plus-square" style="font-size: 48px; color: #dd4b39"></i>

Styling Classes

Add Font Awesome Styling classes to style the icon.

<i class="fa fa-car fa-4x fa-border fa-spin"></i>

Size Classes


fa-lg

fa-2x

fa-3x

fa-4x

Rotated & Flipped Classes


fa-spin

fa-pulse

fa-rotate-90

fa-rotate-180

fa-rotate-270

fa-flip-horizontal

fa-flip-vertical

fa-border


Make Blogger Template Responsive

Feel the real responsive experience in your default blogger template. It make your site content more readable with all devices like PC, laptop, tablet and mobile.
  • Go to Template > Customize > Advanced > Add CSS
  • Add the code below.

Fixed Width Responsive

It will preserve the page content width. Resize the browser window to see the effect.

@media only screen and (max-width : 992px) {
.column-center-outer, .column-left-outer, .column-right-outer {float: none; width: 100% !important; position: inherit; margin: 0 !important; }
.column-left-outer, .column-right-outer {padding-top: 30px;}
.columns {padding: 0 !important;}
}
Change the max-width value you wish to response with.

Fluid Width Responsive

It will flow page content depend on browser window size. Resize the browser window to see the effect.

@media only screen and (max-width : 992px) {
.column-center-outer, .column-left-outer, .column-right-outer {float: none; width: 100% !important; position: inherit; margin: 0 !important;}
.column-left-outer, .column-right-outer {padding-top: 30px;}
body, .content-outer, .content-fauxcolumn-outer, .region-inner { min-width: 100% !important}
.columns {padding: 0 !important;}
}
Change the max-width value you wish to response with.

Make Blogger Template Full Width

Feel 100% width experience in your default blogger template.
  • Go to Template > Customize > Advanced > Add CSS
  • Add the code below.

Fixed Full Width Template

It will preserve the page content width. Resize the browser window to see the effect.

.region-inner {min-width: 100% !important}

Fluid Full Width Template

It will flow page content depend on browser width. Resize the browser window to see the effect.

body, .content-outer, .content-fauxcolumn-outer, .region-inner { min-width: 100% !important}
body, .main-inner, .content-inner, .footer-inner { padding: 0px}

Full Width Only Header

Make header area width 100%.

.region-inner.header-inner { min-width: 100% !important;}
.header-inner .section {margin: 0px}

Full Width Only Tabs

Make Tabs (Page Header) area width 100%.

.region-inner.tabs-inner { min-width: 100% !important; padding: 0px }
.tabs-inner .section {margin: 0px;}

Full Width Only Footer

Make Footer area width 100%.

.region-inner.footer-inner { min-width: 100% !important; }
.footer-inner .section {margin: 0px;}

Remove From Blogger Template

There are some item in default blogger template you may interested to remove.
  • Go to Template > Customize > Advanced > Add CSS
  • Add the code below.

Remove Powered by Blogger

The Attribution Gadget show in the footer area says Powered by Blogger.

#Attribution1 {display: none;}
Simple template. Powered by Blogger.

Remove Subscribe to: Posts (Atom)

If you find this link pretty useless then you can remove it by add the code below.

.blog-feeds {display: none;}
Subscribe to: Posts (Atom)

Remove Blogger Navbar

Blogger navigation bar can be very useful when you are blogging. But sometimes it can be useless.

.navbar {display: none;}

Remove Pager Dotted Lines

In some blogger template there are dotted line in between the pager (Newer Posts, Home, Older Post)

.blog-pager {background: none;}

Remove Footer Dashed Lines

In some blogger template there are Dashed line avobe the footer area.

.footer-outer {border: none}
Simple template. Powered by Blogger.

Remove Post Footer

In blogger template post footer contain posted by, post date etc. But if you disible those option there are a blank gray box which you can remove.

.post-footer {display: none}
This is a post body text. In a smiple blogger template you will see the bottom blank gray box after end of every post. You might interested to remove it.

Remove Box Shadow

In blogger template post, widget, footer, pager have box shadow which you can remove.

.main-inner .widget, #blog-pager, .date-outer, .footer-fauxborder-left {box-shadow: none}

Remove Blogger Background

In some blogger template there are color or image background which you can remove.

body {background: none;}
My Blog Title
My Blog Description

Remove Blogger Template Border

In blogger template post, widget, footer, pager have round border which you can remove.

.main-inner .widget, #blog-pager, .date-outer, .footer-fauxborder-left {border: none}

Remove Navigation Tabs Border

In blogger template there are border around links which you can remove.

.tabs-inner .widget li a, .tabs-inner .widget li:last-child a, .tabs-cap-top, .tabs-cap-bottom {border: none}

Remove Navigation Tabs Gradient

In blogger template there are gradient around navigation bar which you can remove.

.tabs-outer, .tabs-inner .widget li.selected a, .tabs-inner .widget li a:hover {background-image: none}

Remove Photo Frame

Blogger template contain photo frame by default which you can remove.

.post-body img {border: none; box-shadow: none;}

Remove Blogger Header

Sometimes blogger header might not importent to show.

.header-inner {display: none}
My Blog Title
My Blog Description

Remove Extra Padding

Sometimes blogger extra padding between header, posts, widets, footer might not importent to show.

.main-inner {padding: 0}
.main-inner .section, .main-inner .widget {margin: 0}
.main-inner .column-center-inner, .main-inner .column-left-inner, .main-inner .column-right-inner {padding: 0}
.main-inner .section:last-child .Blog:last-child {margin: 0}

.date-outer:last-child, #blog-pager {margin: 0}
.footer-outer {padding: 0; margin: 0}
Postes
Widget 1
Widget 2

Remove Widget Title

Sometimes blogger Widget title might not importent to show.

h2.title {display: none}
Widget Title
I am a Widget content.

Design Blogger with W3.CSS

W3.CSS is a modern CSS framework to design Blogger blog.
  • Responsive, smaller and faster.
  • W3CSS is free, easier to learn and easier to use.
  • No jQuery or JavaScript library required.
  • Make Blogger blog super fast.
  • Provides CSS equality for all devices. PC, laptop, tablet, and mobile.

Add W3.CSS in Blogger

Go to Template > Edit HTML & past the code after  <head> tag.

<link href='http://www.w3schools.com/lib/w3.css' rel='stylesheet'/>

Use W3.CSS in Blogger

Add W3CSS classes for design your content.

<button class="w3-btn w3-light-grey w3-round w3-border">Button</button>

Background Color Classes

w3-red w3-pink w3-purple w3-deep-purple w3-indigo w3-blue w3-light-blue w3-cyan w3-aqua w3-teal w3-green w3-light-green w3-lime w3-sand w3-khaki w3-yellow w3-amber w3-orange w3-deep-orange w3-blue-grey w3-brown w3-light-grey w3-grey w3-dark-grey w3-black w3-pale-red w3-pale-yellow w3-pale-green w3-pale-blue

Text Color Classes

w3-text-red w3-text-pink w3-text-purple w3-text-deep-purple w3-text-indigo w3-text-blue w3-text-light-blue w3-text-cyan w3-text-aqua w3-text-teal w3-text-green w3-text-light-green w3-text-lime w3-text-sand w3-text-khaki w3-text-yellow w3-text-amber w3-text-orange w3-text-deep-orange w3-text-blue-grey w3-text-brown w3-text-light-grey w3-text-grey w3-text-white w3-text-dark-grey w3-text-black

Padding Classes

w3-padding w3-padding-tiny w3-padding-small w3-padding-medium w3-padding-large w3-padding-xlarge w3-padding-xxlarge w3-padding-jumbo w3-padding-0 w3-padding-4 w3-padding-8 w3-padding-12 w3-padding-16 w3-padding-24 w3-padding-32 w3-padding-48 w3-padding-64 w3-padding-128 w3-padding-top w3-padding-bottom w3-padding-left w3-padding-right

Margin Classes

w3-margin w3-margin-0 w3-margin-top w3-margin-bottom w3-margin-left w3-margin-right

Card Classes

w3-card w3-card-2 w3-card-4 w3-card-8 w3-card-12 w3-card-16 w3-card-24 w3-hover-shadow

Round Classes

w3-round w3-round-small w3-round-medium w3-round-large w3-round-xlarge w3-round-xxlarge w3-round-jumbo w3-circle

Float & Align Classes

w3-left w3-right w3-center w3-vertical w3-left-align w3-right-align w3-justify w3-display-topleft w3-display-topright w3-display-bottomleft w3-display-bottomright w3-display-middle w3-display-topmiddle w3-display-bottommiddle w3-top w3-bottom w3-overlay

Show / Hide Classes

w3-hide w3-show w3-hide-small w3-hide-medium w3-hide-large

Text Size Classes

w3-tiny w3-small w3-medium w3-large w3-xlarge w3-xxlarge w3-xxxlarge w3-jumbo w3-slim w3-wide

Complete W3.CSS Guide

View complete W3.CSS guide from w3schools here.
Now Blogger Blog can be made faster 80%.
  • Set attribute values.
  • Use data dictionary values.
  • Expr is basically used in conjuction with data tags.

Use Javascript instead of jQuery

Try to use use plain javaspript instead of using huge jQueary library.

Use W3.CSS instead of Bootstrap

Bootstrap contain a huge javascript & css library. So try to use W3.CSS to create responsive grid.

Use SVG instead of FontAwesome

A Blogger site may contain a dozen of icon. FontAwesome load a huge font & css library which is really unnecessary. Use SVG to solve the problem.

Minify CSS & JS

By minifing CSS & JS the size of webpage will significantly reduce which make site load faster.

Specify Image Dimensions

Unspecific image dimension cause browser loading time long. So specify it.

Put CSS at the top and JS at the bottom

Browser load the first element first. So put CSS first cause quick visibility of site without loading JavaScript.

Optimize Image Size

Optimize Image will load faster.

Blogger <b:expr> Attribute

Use expr attribute to insert values.
  • Set attribute values.
  • Use data dictionary values.
  • Expr is basically used in conjuction with data tags.

HTML expr Syntax

Blogger expr can set a attribute value.

<a expr:href='data:blog.homepageUrl'>Home</a>
<img expr:src='data:post.thumbnailUrl'/>
<div expr:class='data:post.oldLinkClass'>Old Link</div>
Use expr with attribute.

Usage of expr Attribute

Go to Template > Edit HTML.

Blogger Section: new

<html>
<head>
<title><data:blog.pageTitle/></title>
<b:skin/>
</head>

<body>
<a expr:href='data:post.url'>Current Page URL</a>

<b:section id='new'>
  <b:widget id='Blog1' type='Blog'/>
</b:section>

</body>
</html>
This example shows how to output current page URL.

HTML expr Examples

  • <a expr:href='data:blog.homepageUrl'>Home</a>
    A home link with the blog's homepage url.

  • <a expr:href='data:blog.homepageUrl + "feeds/posts/default"'>Posts RSS</a>
    A link with the blog's post RSS feed url. The ‘+' operator concatenates the two strings.

  • <a expr:class='data:post.allowComments ? "comment" : "no-comment">Comment</a>
    A link with the class "comment" when comments are allowed, and "no-comment" when they are not. The ternary operator (?:) takes the given boolean value and picks the first value (after the ?) if the boolean is true, or the second value (after the :) if the boolean is false.
  • Blogger <b:switch> Tag

    Use b:switch tag to insert multiple b:elseif like tags.
    • Don’t need to repeat the variable name.
    • Easily read variables to see what defines each case, and what the default case is.

    HTML b:switch Syntax

    Each Blogger Loop in your template has opening and closing tags.

    <b:switch var='Data Expression'>
    <b:case value="Value1" />
     Display if Value1 is equal
    <b:case value="Value2" />
     Display if Value2 is equal
    <b:default />
     Display if not equal to any other b:case
    </b:switch>
    b:case tag can be repeted as need.

    Usage of b:switch Tag

    Go to Template > Edit HTML.

    Blogger Section: new

    <html>
    <head>
    <title><data:blog.pageTitle/></title>
    <b:skin/>
    </head>

    <body>
    <b:switch var='data:blog.pageType'>
    <b:case value="static_page" />
      <h1>Page</h1>
    <b:case value="item" />
      <h1>Post</h1>
    <b:default />
      <h1>Blog Posts</h1>
    </b:switch>

    <b:section id='new'>
      <b:widget id='Blog1' type='Blog'/>
    </b:section>

    </body>
    </html>

    Post

    This example shows how to output a different text header, depending on what type of page is being rendered.

    HTML b:switch Attributes

    Attribute Values Description
    var name Defines Data expression name.

    HTML b:case Attributes

    Attribute Values Description
    value name Defines Data expression value.

    Blogger <b:if> Tag

    The b:if tag lets you display content logicaly.
    • Display certain content in particular cases & other content in other cases.
    • Creating a logical condition for activate a section of code.
    • The logical tags are b:if, b:else and b:elseif
    • For example, you might only want to show certain text on the homepage, but different text when looking at individual posts.

    HTML b:if Syntax

    Each Blogger b:if in your template has opening and closing tags.

    <b:if cond='condition'>
      Display if condition is true
    <b:elseif cond='another condition'/>
      Display if condition is false and elseif condition is true
    <b:else/>
      Display if no if or elseif conditions are met
    </b:if>
    The b:elseif and b:else tags are optional. Without them, the result will be either the content listed in the b:if section or nothing. The closing </b:if> is required in each case.

    Usage of b:if Tag

    Go to Template > Edit HTML.

    Blogger Section: new

    <html>
    <head>
    <title><data:blog.pageTitle/></title>
    <b:skin/>
    </head>

    <body>
    <b:if cond='data:blog.pageType == "item"'>
      I am Post
    <b:else/>
      I am not a Post
    </b:if>

    <b:section id='new'>
      <b:widget id='Blog1' type='Blog'/>
    </b:section>

    </body>
    </html>

    Post

    If current page is a post page it show "I am a Post". Otherwise it show "I am not a Post".

    HTML b:if Conditions

    For "condition" you can put in anything that evaluates to either true or false. Some data tags are simply true/false values on their own, e.g. allowComments on a post. With other pieces of data, you can compare them with specific values to get a true or false.

    Code Description
    <b:if cond='data:post.showBacklinks'> True if the current post is set to show backlinks.
    <b:if cond='data:blog.pageType == "item"'> True if the current page is an item page (post page).
    <b:if cond='data:post.numComments > 1'> True if the current post has more than one comment.
    <b:if cond='data:blog.pageType == "item" and data:post.showBacklinks'> True if the current page is an item page (post page) and the current post is set to show backlinks.
    <b:if cond='data:displayname != "Fred"'> True if this is not Fred's display name.
    <b:if cond='data:blog.pageType in {"static_page", "item"}'> OR <b:if cond='{"static_page", "item"} contains data:blog.pageType'> True if the current page is a specific post, or a page.
    <b:if cond='data:displayname == "Fred" or data:blog.pageType == "static_page"'> True if Fred is the display name, or the current page is a static page (not a post page).

    Blogger <b:loop> Tag

    The b:loop tag lets you repeat a section of content multiple times.
    • Repeat code multiple times.
    • It saves a lot of work.

    HTML b:loop Syntax

    Each Blogger Loop in your template has opening and closing tags.

    <b:loop var='identifier' values='set-of-data'>
      Repeated Content Here
    </b:loop>
    var can be any name.
    values can be any HTML Data.

    Usage of b:loop Tag

    Go to Template > Edit HTML.

    Blogger Section: new

    <html>
    <head>
    <title><data:blog.pageTitle/></title>
    <b:skin/>
    </head>

    <body>
    <b:section id='new'/>

    <b:loop var='i' values='1 to 3'>
      <li><data:i /></li>
    </b:loop>

    </body>
    </html>
  • 1
  • 2
  • 3
  • A loop tag allows you to iterate across an inclusive number range, such as ‘1 to 3', ‘-3 to -9', where the value of the variable takes the number's value.

    Control b:loop Tag

    Control Blogger Loop with attributes.

    <ul>
      <b:loop var='number' index='index' values='9 to 7'>
        <li>Index: <data:index />, Number: <data:number /></li>
      </b:loop>
    </ul>

    This Blogger Loop tags also have an optional index attribute, which gives the zero-based index of the current iteration through the loop.

    HTML b:loop Attributes

    Attribute Values Description
    var name Defines a name for the loop
    values name Defines HTML Data for the loop.
    index value Defines zero-based index of the current iteration through the loop.

    Blogger <data:name/> Tag

    Use it to add specific pieces of data in your template.
    • It can show the particular piece of data you want to use.
    • Different types of widgets use different data.

    HTML data:name Syntax

    Blogger data:name can be formatted as <data:name/> or <data:name1.name2/>

    <data:title/>

    It would print out the title of a widget.

    Usage of data:name Tag

    Go to Template > Edit HTML.

    Blogger Section: new

    <html>
    <head>
    <title><data:blog.pageTitle/></title>
    <b:skin/>
    </head>

    <body>
    <b:section id='new'>
    <b:widget id='HTML1' type='HTML' title="We Love v5 Blogger">
      <b:includable id='main'>
      <data:title/>
      </b:includable>
    </b:widget>
    </b:section>
    </body>
    </html>
    We Love v5 Blogger
    <data:blog.pageTitle/> will print the title of your page.
    <data:title/> will print the title of HTML1 widget.

    Globally Available Data

    This information applies to the entire page, so you can use it anywhere, unlike other data which can only be used in a specific widget. These should be referenced as part of the overall "blog" data, e.g. as <data:blog.title/>, etc.

    Name Values Description
    title name The blog's title.
    pageType item
    archive
    index
    The type of the current page.
    url URL The URL of the current page.
    homepageUrl URL The homepage of the blog.
    pageTitle name The title of the current page. This is often the blog title, but may contain additional information on archive or post pages.
    encoding name The encoding to use for the blog, e.g. UTF-8.
    languageDirection ltr
    rtl
    Left-to-right and right-to-left languages, respectively.
    feedLinks links The autodiscovery feed links for the page header.

    Page Header

    This is a simple widget with just two pieces of data. They can be referenced simply as <data:title/> and <data:description/>.

    Name Values Description
    title name The blog's title.
    description name The blog's description.

    Blog Posts

    This is the central part of any blog, and the most complex. You should definitely consider simply making modifications to one of the default templates before writing a blog posts widget from scratch. But however you want to do it, here's all the data available in this widget.

    Name Values Description
    feedLinks url
    name
    feedType
    mimeType
    A list of feeds for this page. On the main page, this will contain the main blog feeds; on item pages, this will also contain comments feeds.
    olderPageUrl URL If there are older posts than the ones on the current page, this is a URL to those posts. Context-sensitive for page type. (Not all pages will have this link.)
    olderPageTitle name Title of the link to the older page of posts.
    newerPageUrl URL The newer equivalent of olderPageUrl.
    newerPageTitle name The newer equivalent of olderPageTitle.
    commentLabel name The phrase to use to show the number of comments, e.g. "comments."
    authorLabel name The phrase to use to indicate who wrote the post, e.g. "posted by."
    timestampLabel name The phrase to use to indicate when the post was written, e.g. "posted at."
    postLabelsLabel name Phrase to introduce the list of post labels, e.g. "labels for this post."
    posts dateHeader
    id
    title
    body
    author
    url
    timestamp
    labels
    allowComments
    numComments
    showBacklinks
    numBacklinks
    addCommentUrl
    emailPostUrl
    editUrl
    feedLinks
    comments
    dateHeader: The date of this post, only present if this is the first post in the list that was posted on this day.
    id: The numeric post ID.
    title: The post's title.
    body: The content of the post.
    author: The display name of the post author.
    url: The permalink of this post.
    timestamp: The post's timestamp. Unlike dateHeader, this exists for every post.
    labels: The list of the post's labels. Each label contains the following: name: The label text. url: The URL of the page that lists all posts in this blog with this label. isLast: True or false. Whether this label is the last one in the list (useful for placing commas).
    allowComments: 'True' if this post allows comments.
    numComments: The number of comments on this post.
    showBacklinks: Whether to show backlinks for this post.
    numBacklinks: Number of backlinks for this post.
    addCommentUrl: The URL of the 'add a comment' form for this post.
    emailPostUrl: The URL of the 'email this post' form for this post.
    editUrl: The URL of the edit form for this post.
    feedLinks: A list of feeds specific to this post. (This is different from the overall blog feedLinks, as it may contain a feed for the post's comments, for instance.) Each contains the following: url: The feed URL. name: The feed name (e.g. 'Posts' or 'Comments'). feedType: The type of feed (Atom or RSS). mimeType: The mime type of the feed.
    comments: A list of all comments for this post (on item pages only). Each contains the following: id: The numeric ID of the comment. body: The body of the comment. timestamp: The time the comment was created. author: The display name of the comment's author, or 'Anonymous'. authorUrl: URL of the comment author's profile, if the comment is not anonymous. deleteUrl: The URL for deleting this comment. isDeleted: Whether this comment has been deleted. (The text of deleted comments is replaced with a placeholder.)
    backlinksLabel name Phrase to describe backlinks to this post, e.g. "links to this post."

    Blog Archives

    The different styles provided here are for the different default options on the Page Elements tab. If you're designing a new version, it's easiest to use 'FLAT' as the style, and then manipulate the rest of the data as desired.

    Name Values Description
    title name The title of the widget.
    style MENU
    FLAT
    HIERARCHY
    One of 'MENU', 'FLAT', or 'HIERARCHY'.
    data name
    url
    post-count
    A list of each archive unit, each of which contains. name: The name of this archive interval, e.g. "August 2006." url: The link to the page containing posts from this interval. post-count: How many posts there are in this interval.

    Profile Widget

    For a blog with a single author, the profile widget contains the following information. Note that to access different parts of the photo data, you'll use notation such as <data:photo.url/>.

    Name Values Description
    title name The title of the widget.
    userUrl URL The author's profile URL.
    location name The location from the author's profile.
    aboutme value The "About Me" information from the profile.
    displayname name The author's display name.
    photo url
    width
    height
    alt
    The user's profile photo, made up of the following: url: The photo URL. width: The photo's width, in pixels. height: The photo's height, in pixels. alt: The "alt" text for the photo.

    On team blogs, the profile widget contains less information about more authors, as follows.

    Name Values Description
    title name The title of the widget.
    authors displayname
    userURL
    The list of all authors, each of which contains the following: displayname: The author's display name. userURL: The author's profile URL.
    If you want to design your template to handle both single- and multiple-author blogs, you can use the data:team variable to distinguish between the two cases. E.g. <b:if cond='data:team=="true"'> (display multiple authors) </b:if>

    Text / HTML / JavaScript Widget

    The Text widget and the HTML/JavaScript widget work the same way and have the same two pieces of data.

    Name Values Description
    title name The widget's title.
    content value The content of the widget.

    Feed Widget

    A feed widget's content is dynamically loaded using Google AJAX API after blog is rendered in a browser. It can be styled only using CSS.

    Name Values Description
    title name The widget's title.
    feedUrl URL The URL of the feed.

    Picture Widget

    A picture widget contains a single image, and provides all the relevant data for that image.

    Name Values Description
    title name The title of the widget.
    sourceUrl URL The URL of the image.
    width number The image's width, in pixels.
    height number The image's height, in pixels.
    caption name The image caption.

    Labels Widget

    The labels widget includes a list of all labels that are in use on the blog.

    Name Values Description
    title name The widget title.
    labels name
    count
    url
    The list of labels, each of which contains: name: The text of the label. count: How many posts have this label. url: A link to a page displaying posts with this label.

    List Widget

    The simplest form of a list. Each item is just a single piece of text, without any different types of data within it.

    Name Values Description
    title name The widget title.
    items name The list of items.

    Link List Widget

    A slightly fancier list, where each item has two parts to it: the text and the link.

    Name Values Description
    title name The widget title.
    links name
    target
    The list of links, each of which contains: name: The link's text. target: The link's URL.

    Logo Widget

    It doesn't get any simpler than this one. Just one piece of data here.

    Name Values Description
    fullButton URL The URL of the Blogger button you've selected.

    Blogger <b:includable> Tag

    Re-use one code section in several different places.
    • It can control a section of code which used in multiple times.
    • b:includable saves a lot of work.

    HTML b:includable Syntax

    Each Blogger b:includabe in your template has opening and closing tags.

    <b:includable id='myText'>
      Your Content Here
    </b:includable>
    Inside b:widget tag, use b:includable

    HTML b:include Syntax

    Use b:include tag to display content of b:includable tag.

    <b:include name='myText'/>
    Inside b:includable tag, use b:include.
    Use b:includable tag id as b:include tag name.

    Usage of b:includable Tag

    Go to Template > Edit HTML.

    Blogger Section: new

    <html>
    <head>
    <title><data:blog.pageTitle/></title>
    <b:skin/>
    </head>

    <body>
    <b:section id='new'>
    <b:widget id='HTML1' type='HTML' title="We Love v5">
      <b:includable id='main'>
      <data:title/> <b:include name='myText'/>
      </b:includable>

      <b:includable id='myText'>
      <b>Blogger</b>
      </b:includable>

    </b:widget>
    </b:section>
    </body>
    </html>
    We Love v5 Blogger
    Every widget must have a b:includable id='main' which contain the entire widget data.
    Use b:includable and b:include tag in the same widget.

    Control b:includable Tag

    Configer b:includable tag with attributes.

    <b:includable id='myData' var='thiswidget'>
      <img src='my-image.gif'/>
    </b:includable>

    This b:includable render a image by using b:include name myData. With var thiswidget referencing data within this section.

    HTML b:includable Attributes

    Attribute Values Description
    id name Required. A unique identifier made up of letters and numbers. Each widget must have one includable with id='main'.
    var name Optional. An identifier made up of letters and numbers, for referencing data within this section.

    HTML b:include Attributes

    Attribute Values Description
    name name Required. A unique identifier made up of letters and numbers. Each widget must have one includable with id='main'.
    data name Optional. An expression or piece of data to pass on to the includable section. This will become the value of the var attribute in the includable.
    cond name Optional. An expression which causes the include to only execute when its result is true. This is the same as the cond attribute on a b:if.

    Blogger <b:widget> Tag

    Widgets are small tools or applications that can be added to enhance blogs content.
    • Widgets are used to add feture in a blog.
    • Design and add content in blogs using widgets.
    • Drag-and-drop system available for rearange widgets. 
    • Widgets, also known as gadgets.

    HTML b:widget Syntax

    Each Blogger b:widget in your template has opening and closing tags.

    <b:widget id='CustomSearch1' title='Search' type='CustomSearch'></b:widget>
    Note: In your published blog, all <b:widget> tags will be replaced with <div> tags.

    Usage of b:widget Tag

    Go to Template > Edit HTML.

    Blogger Widget: Search

    <html>
    <head>
    <title><data:blog.pageTitle/></title>
    <b:skin/>
    </head>

    <body>
      <b:section id='new'>
        <b:widget id='CustomSearch1' title='Search' type='CustomSearch'></b:widget>
      </b:section>
    </body>
    </html>
    new
    Search
    Search Box gadget
    Best pratcice to add default Blogger widgets from Layout > Add a Gadget.

    Control b:widget Tag

    Configer Blogger b:widget with attributes.

    <b:widget id='CustomSearch1' class='myClass2' locked='false' title='Search' type='CustomSearch' visible='true'></b:widget>

    This Blogger b:widget can be removed from layout. It will be visible in blog & it can be styled with CSS Class myClass2.

    HTML b:widget Attributes

    Attribute Values Description
    id name Required. Defines a name for the section
    type name Required. Indicates the kind of widget.
    class name Optional. Defines CSS style for the section
    locked yes
    no
    Optional. A locked widget cannot be moved or deleted from the Layout tab. Default is "no"
    title name Optional. Defines title for the widget. If no title is specified, a default title such as "List1" will be used.
    pageType all
    archive
    main
    item
    Optional. The widget will display only on the designated pages of your blog. Default is "all"
    mobile yes
    no
    default
    Optional. This decides if the widget will be displayed on mobile or not. Only Header, Blog, Profile, PageList, AdSense, Attribution will be displayed on mobile when the mobile attribute is "default"

    Blogger Section <b:section>

    Sections can be used for made up template layout & insert widgets.
    • In the <body> tag, sections can be inserted.
    • A section can only contain widgets.
    • Sections are areas of your site, such as a header, sidebar, footer.
    • Sections is created for inserting widgets like popular post, blogroll, search box.
    • You can include any HTML around the sections in your template.

    HTML b:section Syntax

    Each Blogger Section in your template has opening and closing tags.

    <b:section id='new'></b:section>
    Note: In your published blog, all <b:section> tags will be replaced with <div> tags.

    Usage of b:section Tag

    Go to Template > Edit HTML.

    Blogger Section: new

    <html>
    <head>
    <title><data:blog.pageTitle/></title>
    <b:skin/>
    </head>

    <body>
      <b:section id='new'></b:section>
    </body>
    </html>
    new
    To insert extra code within a section, split the section into two or more new sections.

    Control b:section Tag

    Control Blogger Section with attributes.

    <b:section id='new' class='myClass1' maxwidgets='5' showaddelement='yes'></b:section>

    This Blogger Section allow add or remove widget. It can add maximum 5 widgets & can be styled with CSS Class myClass1.

    HTML b:section Attributes

    Attribute Values Description
    id name Required. Defines a name for the section
    class name Optional. Defines CSS style for the section
    maxwidgets number Optional. Defines maximum number of widgets to allow in this section. If you don't specify a limit, there won't be one.
    showaddelement yes
    no
    Optional. This will show the 'Add a Gadget' link in this section. Default is "yes"
    growth horizontal
    vertical
    Optional. This determines widgets within this section are arranged side-by-side or stacked. Default is "vertical"

    Blogger Tutorial



    With Blogger you can create your own Web site.
    This tutorial teaches you everything about Blogger.
    Blogger is easy to learn - You will enjoy it.

    What is Blogger?

    Blogger is a blog-publishing service which is completely free.
    • Blogger is Google’s FREE tool for creating blogs.
    • You will get a Domain like yourname.blogspot.com
    • Blogger is offering Unlimited Bandwidth.
    • Unlimited Hostng for image.

    How to Create a Blog in Blogger?

    To create your own blog follow the steps below.
    1. Go to Blogger.com
    2. Sign in with your google account if required.
    3. From top left click New Blog buttom.
    4. In the popup give a title and address (URL) of you blog.
    5. Choose a template & click Create blog!

      Use the Blogger Dashboard

      Control everything for your blog.
      • Create Post: Make a new post by click New Post.
      • Post List: To see your post list, click Posts.
      • Create Page: Add & view pages by click Pages.
      • Add Gadget: To add or remove gadget, go to Layout > Add a Gadget.
      • Change Template: Go to Template. Select one and click Apply to Blog.
      • Customize Template: To edit template go to Template > Cuztomize.
      • View Blog: See how your blog looks by click View blog.

      Footer Note

      v5 Blogger is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2016. All Rights Reserved.
      Powered by W3.CSS.

      v5 Library