How to display different sidebar titles in blogger classic template

blogger.jpgI am using the classic blogger template to write some of my Chinese blogs. Since I could not use the default English titles for my sidebar, I had to make translations. But sometimes the Chinese words could not represent the real meaning of English titles very well, especially the same title appears on Main or Archive and Item pages. For example, I had to use “最近文章” and “更早文章” for “Previous Posts” in different types of pages.

Here is what I did to accomplish it.

First, locate the position of sidebar title in your classic blogger template by logging in your blogger account and clicking template tab. Usually it will be after the <div id="sidebar"> and <!-- End #profile --> . My title is between the tags of <h2>. for example, the Previous Posts looked like <h2 class="sidebar-title">Previous Posts </h2>.

Copy the whole <h2>...</h2> code, paste it and make the language changes.

Put the condition tag of Main or Archive pages, which is <MainOrArchivePage> before the the first title, and put another condition tag for the actual post page (<ItemPag>) before the second one. So your updated codes should look like the following.

<MainOrArchivePage>
<h2 class=”sidebar-title”>最近文章</h2>
</MainOrArchivePage>

<ItemPage>
<h2 class=”sidebar-title”>更早文章</h2>
</ItemPage>

Save your template and re-publish your blog, then you are done.


Technorati : ,
Del.icio.us : ,

No tag for this post.

Related posts

0 Responses to “How to display different sidebar titles in blogger classic template”


  1. No Comments

Leave a Reply