Ads 468x60px

Pages

Sunday, May 7, 2006

Tip: Putting the archive links into a menu

If you have been blogging over a long period of time, the list in the archives can get pretty long. You can put the links into a menu to make it more compact. It is pretty straight forward to do. All you have to do is to replace the default archive code with another set of code.

In your template, look for the default archive code which is shown below:

<h2 class="sidebar-title">Archives</h2>
<ul class="archive-list">
<BloggerArchives>
<li><a href="<$BlogArchiveURL$>"><$BlogArchiveName$></a></li>
</BloggerArchives>

delete them, and replace it with these codes:

<select name="archivemenu" onchange=
"document.location.href=this.options[this.selectedIndex].value;">

<option selected>- Archives -</option>

<BloggerArchives>
<option value="<$BlogArchiveURL$>"><$BlogArchiveName$></option>
</BloggerArchives>

</select>

and that is all there is to it. It is done.

Note: I have a nagging suspicion that if this hack is implemented on your blog, you may not be able to backup your blog right up to the beginning with Blog Collector. See How to backup your blog. Also, drop-down menu cannot be read by search engines, so it may not help you in search engine results.

Robotic Vacuum Cleaner

iRobot Roomba 4230 Remote Scheduler Robotic Vacuum Cleaner

Electrolux EL520A Trilobite Robotic Vacuum

NEWER POST    OLDER POST

0 comments:

Post a Comment