How To Make a Table Of Content

Posted by Lasantha Bandara File Under : change template, html, widget 1 Comment

1.Log in to your dashboard--> layout- -> Edit HTML

2.Click on "Expand Widget Templates"

3.Scroll down to where you see this:

<b:include data='post' name='post'/>

4.Replace above code with the below code :

<b:if cond='data:blog.homepageUrl !=
data:blog.url'>
<b:if cond='data:blog.pageType != "item"'>
<a expr:href='data:post.url'>
<div style="padding:6px 0 6px 5px;border-right:1px solid #ccc;border-bottom:1px solid #ccc;margin-bottom:2px;background:#EAE9E9;color:#406A0E;">
<data:post.title/></div></a>
<b:else/>
<b:include data='post' name='post'/>
</b:if>
<b:else/>
<b:include data='post' name='post'/>
</b:if>

5.Click on "Save Templates".

6.Click on Layout tab.Now Click on Add a Gadjet.Now Select "HTML/Java Script".

7.Copy below code and Paste it into the "HTML/Java Script" pop up window.

<a href="http://YourBlogName.blogspot.com/search?max-results=200">Show all post &raquo;&raquo;</a>

Note : You must replace YourBlogName with your real blog name and you can change the value of max-results=200 .

8.Now click Save and you are done.

1 thought on “How To Make a Table Of Content

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.