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:
- Hide all blog post under certain label from appearing on your blog front page.
- Transform label URL to static page using Pages widget.
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 == &quot;&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 != &quot;Your Label&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