How to Hide Specific Posts from Homepage in Blogger




How To Hide Specific Posts From Homepage Of Blogger Blog :




Method 1 :

First you have to login your blogger account.
<div class="date-outer">
Now replace the above code with the following coding lines.
 <div class="date-outer"
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<b:if cond='data:blog.searchQuery == &quot;&quot;'>
<b:if cond='data:blog.searchLabel == &quot;&quot;'>
<b:if cond='data:post.url == &quot;Your Post URL&quot;'> style=&#39;display:none;&#39;</b:if>
</b:if>
</b:if>
</b:if>
</div>&gt;
* Don't forget to replace Your Post URL with your blog article or post link which you want to hide from homepage.
  • If you want to hide more than one post than place the following code in above coding just before </b:if></b:if></b:if></div>&get;
 <b:if cond='data:post.url == &quot;Your Another Post URL&quot;'> style=&#39;display:none;&#39;</b:if>
In same way you can hide more post from homepage.Now save your template and view your blog homepage.That's it, you have successfully removed useless articles from your homepage.

Method 2 :

Go to blogger
<style>
<b:if cond='data:blog.url == ... >
#YOUR POST ID {display:none}
</b:if>
Now Replace
 <b:if cond='data:blog.searchLabel == ... >
#YOUR 2nd POST ID {display:none}
</b:if>
  • Your can hide more posts by placing above CSS code line again and again.After placing the code save your template and view your blog homepage to see changes.

How To Hide Posts Under Specific Labels From Blogger Blog :

Go to your blogger
<b:if cond='data:post.dateHeader'>
<h2 class='date-header'>
<data:post.dateHeader/></h2>
</b:if><b:include data='post' name='post'/>
Replace the above four lines of coding with following code.
<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">
</b:if></b:if></b:if><br />
<h2 class="date-header">
<data:post .dateheader=""></data:post></h2>
<b:include data="post" name="post">
</b:include>
<b:loop values="data:post.labels" var="label">
<b:if cond="data:label.isLast">
<b:if cond="data:label.name != &amp;quot;&lt;span style=&quot;color: red;&quot;&gt;Your Blog Label Name&lt;/span&gt;&amp;quot;">
<b:if cond="data:post.dateHeader">
</b:if></b:if></b:if></b:loop><br />
<h2 class="date-header">
<data:post .dateheader=""></data:post></h2>
<b:include data="post" name="post">
</b:include>
<b:else>
<b:if cond="data:post.dateHeader">
<h2 class="date-header">
<data:post .dateheader=""></data:post></h2>
</b:if>
<b:include data="post" name="post">
</b:include></b:else>

  • Replace Your Blog Label Name with specific label name which posts you want to hide from homepage.Congratulation you have successfully removed posts under specific label from your blogger blog homepage.

Post a Comment

Post Your Comments

Previous Post Next Post

Contact Form