-->

How to transform blog label into static page

In this guide we demonstrate how to convert a label URL into a static page for your blog. This is a quick guide in which we cover two important points:
  1.     Hide all blog post under certain label from appearing on your blog front page.
  2.            Transform label URL to static page using Pages widget.
Recommended: Always take a backup of your blog Template before making any changes.

 transform blog label into static page

First of all hide label posts appearing on main page.

1.     Go to your Dashboard on Blogger
2.     Click on >> Template
3.     Click on >> Edit HTML
4.     Search for <b:include data='post' name='post'/>
5.     Replace this with below code.
<!-- Hide label lablance.com--><b:if cond='data:blog.url == data:blog.homepageUrl'><b:if cond='data:post.labels == &amp;quot;&amp;quot;'><b:if cond='data:post.dateHeader'><h2 class='date-header'><data:post.dateHeader/></h2></b:if><b:include data='post' name='post'/></b:if><b:loop values='data:post.labels' var='label'><b:if cond='data:label.isLast'><b:if cond='data:label.name != &amp;quot;Your Label&amp;quot;'><b:if cond='data:post.dateHeader'><h2 class='date-header'><data:post.dateHeader/></h2></b:if><b:include data='post' name='post'/></b:if></b:if></b:loop><b:else/><b:if cond='data:post.dateHeader'><h2 class='date-header'><data:post.dateHeader/></h2></b:if><b:include data='post' name='post'/></b:if><!-- Hide label code End-->

And Save your template.

The next step is transform label URL to Page URL, Go to here.


If you need any help about this then feel free to communicate with us.

No comments