Hide Specific Label Posts from Homepage in Blogger Some blog user doesn't want to show some specific post appear in blogger Homepage/Index Page. I have tried many thing but at last found ...
2017-12-15T08:09:03Z

Hide Specific Label Posts from Homepage in Blogger

Some blog user doesn't want to show some specific post appear in blogger Homepage/Index Page. I have tried many thing but at last found the hack to hide specific label/labels from Home page. In this post, I'll explain how you can filter posts of a specific label from being displayed on your blogger homepage.

Hide Specific Label Posts from Homepage in Blogger

Before following this tutorial , backup your blogger template. To back up your Blogger template, go to Dashboard >> Template >> Backup / Restore and click the "Download full template" link near the top of the page.

How to Hide Specific Label/Labels Posts from Homepage in Blogger/Blogspot


Step 1: Now Go to Template >> Edit HTML
Inside the blogger code editor find out this below tag
<b:include data='post' name='post'/>
Step 2: Now replace Step 1 tag with below code
<b:if cond='data:blog.url == data:blog.homepageUrl'>
    <b:loop values='data:post.labels' var='label'>
        <b:if cond='data:label.name != &quot;LABEL&quot;'>
            <b:include data='post' name='post' />
        </b:if>
    </b:loop>
    <b:else/>
    <b:include data='post' name='post' />
</b:if>
Exclude Multiple Labels from Homepage
<b:if cond='data:blog.url == data:blog.homepageUrl'>
    <b:loop values='data:post.labels' var='label'>
        <b:if cond='data:label.name != &quot;FIRST LABEL&quot;'>
            <b:include data='post' name='post' />
        </b:if>
        <b:if cond='data:label.name != &quot;SECOND LABEL&quot;'>
            <b:include data='post' name='post' />
        </b:if>
    </b:loop>
    <b:else/>
    <b:include data='post' name='post' />
</b:if>

Step 3: Save it.

So this was our guide on Hide Specific Label Posts from Homepage in Blogger , I hope the methods given above helped you.
Share it:

Blogger

Blogging

Tutorial

Post A Comment:

0 comments: