Here we are with another Blogger template customization trick @ Blogging Ethics. Actually, sometimes we publish some posts that we don’t want to be seen by others. These posts could be any test posts or a static page which you don’t want to be shown up on your blog’s homepage. Or the reason could be anything like the post might be outdated, or it could be a giveaway article that does not looks relevant to be displayed on the homepage.
Hiding some of the specific posts from the homepage of your blogger blog might seem to be a repulsive act laying, but it does make sense on a few occasions according to your needs. This technique is essential for those who no longer wants to display a post or some posts that are appearing on their blog’s homepage.
Today in this article, we will show you how to hide specific posts from Blogger homepage.
How to Hide Specific Posts from Blogger Homepage?
Just follow the steps given below:
- Backup your blog’s template
- Then go to Templates >> Edit HTML
- After your blog’s template editor opened, click on “Jump to widget” drop-down list and then click on “Blog1” in the list. Expand it and look for the following code:
- Now after finding it carefully replace the above code with the code given below:
<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:blog.searchQuery == ""'>
<b:if cond='data:blog.searchLabel == ""'>
<b:if cond='data:post.url == "POST-LINK-A"'>style='display:none;'</b:if>
<b:if cond='data:post.url == "POST-LINK-B"'>style='display:none;'</b:if>
After pasting the above code, replace POST-LINK-A and POST-LINK-B with the URLs of the posts that you would like to hide from your homepage. You can hide more posts by using the same code just by adding more URLs in tag as above.
That’s all! Now you can check the change by visiting your blog’s homepage that your posts are successfully hidden or not.
I hope you enjoyed. If you’ve any doubt or query related to this tutorial then feel free to ask it in comments 🙂