Skip to content Skip to sidebar Skip to footer

How to Hide Posts from Blogger Homepage

The purpose of blogging is to make your blog posts visible to your target audience as well as search engines. However, there are times when you need to hide some blog posts from the front page. For example, a post might contain out-of-date information, so you don't want your audience to see it, but you want to keep it on your site for posting. Or maybe you want a certain post to keep appearing on your blog, but you don't want it to appear on the front page .

Hide blog post from home page
Either way, you need to find ways to hide certain blog posts. Fortunately, if you use Blogger, you can easily do this with a few simple steps. You can use this guide to get started.

hide post from home page

Previously dated blog posts

Let's discuss this method first because it's simple and doesn't require you to work with a single line of code. Basically, all you have to do is change the publish date of the post you want to hide. specifically, you must return to the earliest possible date. This is effective if your Blogger site is configured to show the most recent posts first (as most blogs do); once a post is retroactive, it will no longer appear on the front page.

How do you do it? If you publish a new post and want to hide it, find the "Schedule" option on the right side of the post editor and click "Set date and time." Select an earlier date on the calendar, click "Done" and save the message, then return to the main blog page to check if the message disappeared.

backdate post, schedule blogger post

If you want to hide an old message, the same process applies. the only difference is that you have to click the post title in the toolbar to open it in the editor. Follow the steps above to reset your message history and save it, then open your blog to verify that the message is indeed invisible.

Please note that this process will only hide your posts from the first page. If people take the time to review your blog posts from previous years, they will still be able to see them. This also applies to those who found your secret blog post through search engines.

Hide blog posts in Blogger with code

Another thing you can do to hide a blog post is to edit its code. This is a bit tricky because a small mistake can affect the structure of the message and make it unreadable. This, in turn, can affect your readers' experience as they browse your site and even negatively affect your SEO practices. With this in mind, it's important to be careful when working with code.

Method 1: Hide a Blogger Post with the Post Label

There are two ways to choose, and one of them is to tag the blog post you want to hide. If you're ready to use this method, you'll first need to back up your template. Having a backup is important because it ensures that you have a backup if something goes wrong.

After copying the template, go to Templates, click Edit HTML, then click anywhere in the code area -> press CTRL+F and find this line:
If found, replace it with this code:










Note: Replace Add Tag Here with the blog post tag (case sensitive) that you want to hide from the Blogger home page. Note that the above code will not work if you have multiple tags for this post, so make sure there is only one tag per post.

This is important. every post you want to display on the front page must have at least one tag or it won't display because the b:loop statement won't be executed for it.

Finally, save your changes by clicking the "Save Template" button in the top left corner of the editor, then look at your blog to see if the blog post is hidden.

Method 2: Hide Post on Blogger Using Post ID

In addition to the above method, you can use another method that contains the id number of the blog post you want to hide. To find out the identification number, you need to go to the toolbar area, find the message header you want to hide, and click the "Edit" text link below it. The post will open in the Blogger editor.

Once in the editor, click on the address bar at the top and scroll to the bottom of the URL. Here you will see a text string that looks like postID== followed by a long string of numbers. This is your message ID. The ID number is usually 19 characters long, so it will look like this: postID==1234567890123456789. Copy this ID as you will need it in the next step.

hide blogger post using id

When you get your blog post ID, open your Blogger dashboard, go to Templates, and click Edit HTML. Find this line.
Replace this with:
note: if you find two instances, replace both.

Now find this label.

Once you find it, paste the following code into it.



Remember to replace " 1234567890123456789 " with the 19-digit ID of the blog post you want to hide. Don't forget to save the template when you're done. You can open your blog in another tab or browser to check if the post is really hidden.

That's all.

Whether you delay your post or choose a post authentication method, you must remember that the hidden blog post is still on your site. This means that it will continue to be indexed by search engines, appear in search results, and be found by people searching for keywords in the post. If you really want this blog post to be seen by no one, you should use robots.txt (for Google) to remove it from search results. Better yet, delete the post entirely from your Blogger dashboard and save an electronic copy to your computer.

Post a Comment for "How to Hide Posts from Blogger Homepage"