One of the most famous widgets which is rarely seen in a Blogger
blog is of course a archive calendar widget, in which dates are linked to posts
published on that particular date.
Thanks to Phydeaux3 as we
now have this widget for Blogger too.
This tutorial has mainly four steps, three are common to everyone
and in the fourth step, styling of the widget will be done. You can see a demo by clicking on the button below:
Instructions to Follow:
STEP #1:
Now add the
regular Blogger Archive widget (if you do not already have one in your blog)
like image shown below click [+] add button.
A window will
appear, edit the properties of the archive widget according to this image:
STEP #2:
Now go to Template click on Backup/Restore button to download your template as a back up, if anything goes wrong.
Now go to Template click on Backup/Restore button to download your template as a back up, if anything goes wrong.
Click on Edit HTML button then Proceed, tick on Expand
Widget Templates
Search for the code below (Ctrl + f):
Search for the code below (Ctrl + f):
<b:widget
id='BlogArchive1' locked='false' title='Blog Archive' type='BlogArchive'>
The id can also be
BlogArchive2 instead of BlogArchive1.
Till…….
</b:widget>
Replace above code with the below
original hack (Copy & Paste), be careful while replacing.
<b:widget id='BlogArchive1' locked='false' title='Blog
Archive' type='BlogArchive'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<div id='ArchiveList'>
<div expr:id='data:widget.instanceId +
"_ArchiveList"'>
<b:if cond='data:style == "HIERARCHY"'>
<b:include data='data' name='interval'/>
</b:if>
<b:if cond='data:style == "FLAT"'>
<b:include data='data' name='flat'/>
</b:if>
<b:if cond='data:style == "MENU"'>
<b:include data='data' name='menu'/>
</b:if>
</div>
</div>
<b:include name='quickedit'/>
</div>
</b:includable>
<b:includable id='toggle' var='interval'>
<!-- Toggle not needed for Calendar -->
</b:includable>
<b:includable id='flat' var='data'>
<div id='bloggerCalendarList'>
<ul>
<b:loop values='data:data' var='i'>
<li class='archivedate'>
<a
expr:href='data:i.url'><data:i.name/></a>
(<data:i.post-count/>)
</li>
</b:loop>
</ul>
</div>
<div id='blogger_calendar' style='display:none'>
<table id='bcalendar'><caption id='bcaption'>
</caption>
<!-- Table Header -->
<thead id='bcHead'></thead>
<!-- Table Footer -->
<!-- Table Body -->
<tbody><tr><td id='cell1'>
</td><td id='cell2'> </td><td id='cell3'>
</td><td id='cell4'> </td><td id='cell5'>
</td><td id='cell6'> </td><td id='cell7'>
</td></tr>
<tr><td id='cell8'> </td><td
id='cell9'> </td><td id='cell10'> </td><td
id='cell11'> </td><td id='cell12'> </td><td
id='cell13'> </td><td id='cell14'> </td></tr>
<tr><td id='cell15'> </td><td
id='cell16'> </td><td id='cell17'> </td><td
id='cell18'> </td><td id='cell19'> </td><td
id='cell20'> </td><td id='cell21'> </td></tr>
<tr><td id='cell22'> </td><td
id='cell23'> </td><td id='cell24'> </td><td
id='cell25'> </td><td id='cell26'> </td><td
id='cell27'> </td><td id='cell28'> </td></tr>
<tr><td id='cell29'> </td><td
id='cell30'> </td><td id='cell31'> </td><td
id='cell32'> </td><td id='cell33'> </td><td
id='cell34'> </td><td id='cell35'> </td></tr>
<tr id='lastRow'><td id='cell36'>
</td><td id='cell37'> </td></tr>
</tbody>
</table>
<table id='bcNavigation'><tr>
<td id='bcFootPrev'></td>
<td id='bcFootAll'></td>
<td id='bcFootNext'></td>
</tr></table>
<div id='calLoadingStatus' style='display:none;
text-align:center;'>
<script
type='text/javascript'>bcLoadStatus();</script>
</div>
<div id='calendarDisplay'/>
</div>
<script type='text/javascript'>
initCal();</script>
</b:includable>
<b:includable id='posts' var='posts'>
<!-- posts not needed for Calendar -->
</b:includable>
<b:includable id='menu' var='data'>
Configure your calendar archive widget - Edit archive
widget - Flat List - Newest first - Choose any Month/Year Format
</b:includable>
<b:includable id='interval' var='intervalData'>
Configure your calendar archive widget - Edit archive
widget - Flat List - Newest first - Choose any Month/Year Format
</b:includable>
</b:widget>
STEP #3
Again search for the below code in the template:
Again search for the below code in the template:
</head>
Paste below code ABOVE/BEFORE the search code:
<!-- Start Blogger Archive Calendar
-->
//STYLE CODE WILL COME HERE - SEE STEP #4
<script
src='http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/blogger_archive.js'
type='text/javascript'/>
<script
src='/feeds/posts/summary?max-results=0&alt=json-in-script&callback=timezoneSet'/>
<!-- End Blogger Archive Calendar -->
Now Save the
template.
Now here's the
styling part of the tutorial; select the best theme for your blog applying
below codes:
STEP #4
Go back to Layout -> Edit HTML.
Go back to Layout -> Edit HTML.
Now copy the code
of the style you want it on your blog (and replace the code in RED in STEP #3 with any one style):
Style - Dusty Blue
Style - Dusty Blue
<link
href='http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/dusty_blue.css'
rel='stylesheet' type='text/css'/>
Style for Dark
Templates
<link href='http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/dark_theme.css'
rel='stylesheet' type='text/css'/>
Style - Plain
White
<link
href='http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/plain_white.css'
rel='stylesheet' type='text/css'/>
Style - Blue/Black
<link href='http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/blue_black.css'
rel='stylesheet' type='text/css'/>
So
execute steps correctly and you are done. Now the calendar widget will appear on your blog with your own selected style. Head to your blog and check the trick
executed. So don't forget us. We will only survive with your generosity. Like, Share,
Follow and Subscribe. If you are facing any problem with implementing these codes
just comment below for help. Stay tuned for more posts.
{ 1 comments... read them below or add one }
Not working..tried it
Post a Comment