Thursday, September 17, 2009

How to manually add tabbed contents to your Blogger blog

contentpic From this tutorial, you will be able to add tabbed contents to your Blogger’s blog. Tabbed contents are usually placed in sidebars to save space and reduce loading time, it can also be appealing to have in some templates. Widgets that are usually placed inside tabbed contents to reduce loading time are the archive, labels, about the author, subscribe box, recent posts/comments, and social networking updates, such as twitter and facebook. Before attempting any tutorials, make sure you back-up your existing template just in case it doesn’t turn out as expected.

Steps to follow:

1. Login to your Blogger dashboard

2. Go to Layout > Edit HTML (Do not click on “expand widgets” box)

3. Search for the following section code:


and add the following section code immediately after it:

<link href='' rel='stylesheet' type='text/css'/>
<link href='' rel='stylesheet' type='text/css'/>
<script src='' type='text/javascript'/>
<script src='' type='text/javascript'/>
<script src='' type='text/javascript'/>

<style type='text/css'>
.yui-content { padding:1em; /* pad content container */
.yui-navset .yui-content {
border:1px solid #ccc;
.yui-navset .yui-nav .selected a, .yui-navset .yui-nav a:hover {
.yui-navset .yui-nav li a {
background:#e5e5e5 url( no-repeat;
.yui-navset .yui-nav li a em {
background:transparent url( no-repeat top right;
/* top oriented */
.yui-navset-top .yui-nav { margin-bottom:-21px; } /* for overlap, based on content border-width */
.yui-navset-top .yui-nav li a {
border-bottom:1px solid #ccc;
.yui-navset-top .yui-nav .selected a { border-bottom:0; }
.yui-navset-top .yui-nav .selected a em { padding-bottom:0.6em; } /* adjust height */

4. Next, go to Layouts > Page Elements, and click Add a Gadget.

5. Copy and paste the following section code in it and click Save.

<div id="demo" class="yui-navset">
<ul class="yui-nav">
<li><a href="#tab1"><em>Tab1</em></a></li>
<li class="selected"><a href="#tab2"><em>Tab2</em></a></li>
<li><a href="#tab3"><em>Tab3</em></a></li>
<div class="yui-content">

<div id="tab1"><p>Tab One Content</p></div>
<div id="tab2"><p><ul><li><a href="">Your Label/Link text</a></li></ul></p></div>
<div id="tab3"><p>Tab Three Content</p></div>
(function() {
var tabView = new YAHOO.widget.TabView('demo');

YAHOO.log("The example has finished loading; as you interact with it, you'll see log messages appearing here.", "info", "example");

6. Your done, if you want to add your labels in one of the contents, you will have to add them manually. The following section code highlighted in red indicates a link, for example:

<div id="tab2"><p><ul><li><a href="">Your Label/Link text</a></li></ul></p></div>

Labels: , ,


Post a Comment

Subscribe to Post Comments [Atom]

<< Home