Using conditionals tags we can hide some specific post at Blogger.Just we need to know about label.We will hide the post by labeling it and editing html for not showing the post with that label.Lets do it.

Labeling the post.

Label the post giving unique name.Just go to Blogger Dashboard>New post.Write the post which is to be hidden and label it.For e.g we will take label as Hiddenpost
Labeling post

If you want to hide more page then label it at more post

Removing the Labeled post from Home Page.

  1. Go to Blogger Dashboard>Template>Edit HTML
  2. Back up your Blog
  3. Tick on Expand widget
  4. Find this line
    <b:include data='post' name='post'/>
    
  5. Replace that line with this.
    <!-- Hiding post using Label --> 
    <b:if cond='data:post.labels == &quot;&quot;'>
    <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;hiddenpost&quot;'> 
    <b:include data='post' name='post'/> 
    <b:else/> 
    <b:if cond='data:blog.pageType == &quot;item&quot;'> 
    <b:include data='post' name='post'/> 
    </b:if> 
    </b:if> 
    </b:if> 
    </b:loop> 
    <!-- http://bloggerounder.blogspot.com -->
    
  6. look at the code at line 7.Did you find “Hiddenpost” label from their.The post with the label.If you wished for other label post to be hidden then just change hiddenpost with the name of label which you want to hide that post. label or casa sensitive.
  7. Click on orange button save.

You may see that we have successfully hide the post from label page.

Admin of Blogger Rounder
Shirshak is the Administrator of the Blogger Rounder who thinks he will die next to Blogger. He is Completely devoted to Blogger and thinks Web Designing will makes is career.You contact using contact form from navigation tab to him.You can find him in Twitter.

Subscribe for free
Thanks for visiting Blogger Rounder.We can subscribe to Blogger Rounder's by RSS feed or email updates.

1 comments :

Post a Comment

We Love To Hear Comments from You.Comments are Welcome.You can comment here regarding this Post.If it is not related with the post you can ask a question by Contacting Us.Before Comment Please Subscribe To our RSS or email updates.Publishing Spam Comment is Not allowed.If you want to Add Code then Please Encode it.
Simple Tags like <a> ,<strong>,<b>,<em> and <i> are allowed for preventing spam

Newer page Older Pager Home Pager

Pls share this page

Get this
Copyright © 2012 Blogger Rounder .Designed by Shirshak.
back to top