Make a HTML Sitemap Page in your Blogger Website
A sitemap is a file that lists all of the pages on your website. It helps search engines like Google to crawl and index your website more efficiently. This can lead to your website ranking higher in search results, which can bring in more traffic.
There are two types of sitemaps: XML and HTML. XML sitemaps are used by search engines to crawl and index your website. HTML sitemaps are human-readable pages that list all of the pages on your website in an organized way.
In this article, we will show you how to create an HTML sitemap page in your Blogger website. This will help you to:
- Improve the crawlability of your website by search engines
- Provide a better user experience for your visitors
- Make it easier for you to keep track of all of the pages on your website
Steps to create an HTML sitemap page in Blogger
- Go to your Blogger dashboard and click on the Pages tab.
- Click on the New page button.
- In the Title field, enter the title of your sitemap page. For example, you could enter "Sitemap" or "Table of Contents".
- In the Editor view, copy and paste the following code:
<div id="bp_toc">
</div>
<script src='http://mybloggerlab.com/js/sitemap.js' type="text/javascript"></script>
<script src="/feeds/posts/summary?alt=json-in-script&max-results=9999&callback=loadtoc" type="text/javascript"></script>
- Go to your Blogger dashboard and click on the Pages tab.
- Go to the Themes section of your Blogger Dashboard
- Click on "Edit HTML"
- Press "Ctrl + F" in your keyboard & type "]]></b:skin>" in the search box
- Copy and Paste the following CSS code, below the "]]></b:skin>" tag in your Blogger theme.
#bp_toc{color:#000;margin:0 auto;padding:0;border:1px solid #000;float:left;width:100%}span.toc-note{display:none}#bp_toc tr:nth-child(2n){background:#f5f5f5}td.toc-entry-col1 a{font-weight:700;font-size:14px}.toc-header-col1,.toc-header-col2,.toc-header-col3{background:#05d83b}.toc-header-col1{padding:10px;width:250px}.toc-header-col2{padding:10px;width:75px}.toc-header-col3{padding:10px;width:125px}.toc-header-col1 a:link,.toc-header-col1 a:visited,.toc-header-col2 a:link,.toc-header-col2 a:visited,.toc-header-col3 a:link,.toc-header-col3 a:visited{font-size:13px;text-decoration:none;color:#fff;font-weight:700;letter-spacing:.5px}.toc-header-col1 a:hover,.toc-header-col2 a:hover,.toc-header-col3 a:hover{text-decoration:none}.toc-entry-col1,.toc-entry-col2,.toc-entry-col3{padding:5px;padding-left:5px;font-size:12px}.toc-entry-col1 a,.toc-entry-col2 a,.toc-entry-col3 a{color:#000;font-size:13px;text-decoration:none}.toc-entry-col1 a:hover,.toc-entry-col2 a:hover,.toc-entry-col3 a:hover{text-decoration:underline}#bp_toc table{width:100%;margin:0 auto;counter-reset:rowNumber}.toc-entry-col1{counter-increment:rowNumber}#bp_toc table tr td.toc-entry-col1:first-child::before{content:counter(rowNumber);min-width:1em;min-height:3em;float:left;border-right:1px solid #fff;text-align:center;padding:0 11px 1px 6px;margin-right:15px}td.toc-entry-col2{text-align:center}
Your HTML sitemap page will now be published and can be viewed by visitors to your website. You can also add it to your blog's navigation menu so that it is easy to find.