eBuzz Nigeria

How to Hide Posts from Blogger Homepage

The level of blogging is to make your weblog posts seen to your target market in addition to to search engines like google and yahoo. However, there are occasions while you want to cover sure weblog posts from homepage. For occasion, one publish could comprise outdated data, so you don't need it to be seen by your viewers however you additionally need to preserve it in your website for data functions. Or maybe you need a sure publish to nonetheless be seen in your weblog, however you don't need it to present within the dwelling web page.

Either method, you have got to discover methods to cover sure weblog posts. Fortunately, if you happen to're utilizing Blogger, you possibly can simply accomplish that by taking a couple of easy steps. You can use this information to get began.

hide post from home page

Backdate Blogger Posts

Let's talk about this system first because it's easy and does not require you to take care of any strains of code. Basically, the one factor you want to do is to change the publishing date of the publish you need to cover; particularly, you want to backdate it to the oldest doable date. Doing that is efficient in case your Blogger website is configured to present the latest posts first (as most blogs are); as soon as a publish is backdated, it can now not be proven within the dwelling web page.

How do you do that? If you are publishing a brand new publish and need to cover it, search for the "Schedule" possibility on the appropriate facet of the publish editor and click on on "Set date and time". Choose a earlier date on the calendar, click on 'Done' and Save the publish, then return to your weblog's dwelling web page to verify if the publish has disappeared.

backdate post, schedule blogger post

The identical course of applies if you'd like to cover an older publish; the one difference is that you simply want to click on on the publish's title within the dashboard to open it within the editor. Backdate the publish utilizing the steps above and put it aside, then open your weblog to confirm that the publish is certainly hidden from view.

Please be aware that this course of will solely cover your posts from the homepage. People will nonetheless have the opportunity to see them in the event that they'd take the time to undergo your weblog posts from the earlier years. This can be the case for many who'd come across your hidden weblog publish by means of search engines like google and yahoo.

Hide Blog Posts in Blogger Using Code

Another factor you are able to do to cover a weblog publish is to edit its code. This is a bit sophisticated since one small mistake can have an effect on the publish construction and make it unreadable. This, in flip, can have an effect on your readers' expertise as they flick through your website and actually have a adverse impact in your SEO methods. With this in thoughts, it is necessary to watch out when coping with code.

Method 1: Hide Blogger Post Using the Post's label

There are two methods to select from, and one in all them includes the label of the weblog publish you need to cover. If you are prepared to go forward with this technique, you may first want to make a backup of your template. Having a backup is necessary because it ensures you may have a replica to fall again on in case one thing goes unsuitable.

Once you've got backed up the template, go to "Templates", click on on "Edit HTML" after which click on wherever contained in the code space -> press CTRL + F keys and seek for this line:

<b:embrace information='publish' title='publish'/>

Once you've got discovered it, exchange it with this code:

<b:if cond='information:weblog.url == information:weblog.homepageUrl'>
<b:loop values='information:publish.labels' var='label'>
        <b:if cond='information:label.isLast == "true"'>
            <b:if cond='information:label.title != "add label right here"'>
                <b:embrace information='publish' title='publish' />
            </b:if>
        </b:if>
    </b:loop>
<b:else/>
    <b:embrace information='publish' title='publish' />
</b:if>

Note: exchange the text "add label right here" with the label (case delicate) of the weblog publish that you really want to cover in Blogger homepage. Keep in thoughts that above code will not work when you have a number of labels on that publish, so please make certain the publish has just one label.

Important: each publish that you really want to present on the homepage ought to have at the least one label in any other case they won't be seen as a result of the b:loop assertion will not be executed for them.

Finally, Save the adjustments by urgent the 'Save template'
button on the higher left facet of the editor, then view your weblog to
verify if the weblog publish has been hidden.

Method 2: Hide Blogger Post Using the Post's ID Number

Aside from the strategy above, you need to use one other approach that includes the publish ID variety of the weblog publish you need to cover. To know the ID quantity, you will need to go to the dashboard space, discover the title of the publish you need to cover, and click on the "Edit" text hyperlink under it. Doing it will open the publish within the Blogger editor.

Once you are within the editor, click on on the tackle bar above and go to the top a part of the URL. Here, you may see a line of text that appears like this: postID==, adopted by an extended string of numbers. This is your publish's ID quantity. The ID quantity normally comprises 19 numbers, so it can look by some means like this: postID==1234567890123456789. Copy this ID since you may want it for the subsequent step.

hide blogger post using id

When you have got your weblog publish's ID, open the Blogger dashboard, go to Template, and click on "Edit HTML". Search for this line:

<div class='publish hentry uncustomized-post-template' itemscope='itemscope' ='https://schema.org/BlogPosting'>

Replace it with this one:

<div class='publish hentry uncustomized-post-template' expr:id='&quot;post-&quot; + information:publish.id' itemprop='weblogPost' itemscope='itemscope' ='https://schema.org/BlogPosting'>

Note: if you happen to discovered two occurrences of it, exchange each of them.

Now seek for this tag:

</head>

Once you discover it, paste the next code above it:

<b:if cond='information:weblog.url == information:weblog.homepageUrl'>
<type kind='text/css'>
#post-1234567890123456789{show:none;}
</type>
</b:if>

Don't neglect to exchange "1234567890123456789" with the 19-digit ID variety of the weblog publish you need to cover. Once you are executed, make certain to save the template. You can open your weblog in one other tab or browser to verify if the publish has certainly been hidden.

That's it!

Whether you backdate your publish or go for the publish ID technique, you have got to keep in mind that the weblog publish you've got hidden remains to be in your web site. This means that it'll nonetheless be listed by search engines like google and yahoo, present up on search engine outcomes, and get discovered by people who're looking for the key phrases which can be current within the publish. If you actually need this weblog publish to be seen by nobody, you may want to use robots.txt (for Google) to take away it from search outcomes. Better but, utterly delete the publish from your Blogger dashboard and simply preserve a mushy copy of it in your laptop.

Share on FacebookShare on TwitterShare on Linkedin

Search More of: , ,

« | »




Recent Posts


Pages