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
If you want to hide more page then label it at more post
Removing the Labeled post from Home Page.
- Go to Blogger Dashboard>Template>Edit HTML
- Back up your Blog
- Tick on Expand widget
- Find this line
<b:include data='post' name='post'/>
- Replace that line with this.
<!-- Hiding post using Label --> <b:if cond='data:post.labels == ""'> <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 != "hiddenpost"'> <b:include data='post' name='post'/> <b:else/> <b:if cond='data:blog.pageType == "item"'> <b:include data='post' name='post'/> </b:if> </b:if> </b:if> </b:loop> <!-- http://bloggerounder.blogspot.com -->
- 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.
- Click on orange button save.
You may see that we have successfully hide the post from label page.
Subscribe for free
Thanks for visiting Blogger Rounder.We can subscribe to Blogger Rounder's by RSS feed or email updates.
1 comments :
Thankss Alot!!
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