Wednesday, May 2, 2007

How To Cover Specific Posts From Homepage Inwards Blogger

Hiding a specific or sure enough post from the homepage of your blogger weblog mightiness appear to locomote a repulsive act, but it does brand feel on a few occasions. Recently, 1 of our users asked us how to shroud specific posts from your Homepage inwards Blogger? This technique is essential for those webmasters who no longer desire to display a post that is appearing on their homepage. The argue could locomote anything the post mightiness locomote outdated, or it could locomote a giveaway article that does non hold off relevant to locomote displayed on homepage. Today inwards this article, nosotros volition demo you lot how to shroud specific posts from the homepage inwards blogger.

 The get-go affair you lot demand to login into your blogger concern human relationship too become to Templates >> Edit HTML (be sure enough you lot get got taken a backup of your template, it is a proficient practise inwards representative something went incorrect you lot tin role the backup) too search for the next code. You volition honor the below code somewhere virtually the BLOG1 Code.

<div class="date-outer">

Now correctly supercede the inwards a higher identify code amongst the next lines of coding past times making sure enough you lot are just copying too pasting the right code. If you lot fille a unmarried thing, thence the code volition non operate too you lot may appear upwardly or thence form of errors.

<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-Link&quot;'> style=&#39;display:none;&#39;</b:if>
            <b:if cond='data:post.url == &quot;ANOTHER POST URL&quot;'> style=&#39;display:none;&#39;</b:if>
          </b:if>
          </b:if>
          </b:if>
       &gt;

After pasting the inwards a higher identify code, forthwith it is upwardly to you lot which weblog posts you lot would similar to shroud from your homepage. Replace Your-Post-Link amongst the URL of you lot post that you lot would similar to shroud from your homepage. You tin shroud multiple posts past times adding to a greater extent than URLS inwards <b:if condition/> tag.

Congratulations: Once everything is done, salvage the template. Now become to your homepage too exam if things are working according to the plan. If you lot follow the steps correctly, nosotros are sure enough it would operate but fine.

Alternative Method:

Every post has its ain unique ID, thence if nosotros are able to honor that unique id nosotros tin plainly apply display:none; CSS to shroud it from our homepage. We get got already written a tutorial on how you lot tin honor ID of your posts, thence earlier moving ahead read that tutorial here.

Once you lot got your Post ID, become to Blogger.com >> Template >> Edit HTML too search for the ]]></b:skin>, too but inwards a higher identify it glue the next CSS code. Rememeber. Do non forget to supercede post-1234567 amongst your ain Post ID which you lot would similar to shroud from your homepage.

<style>
<b:if cond='data:blog.url == ... >
#post-1234567 {display:none}
</b:if>
<b:if cond='data:blog.searchLabel == ... >
#post-8903456 {display:none}
</b:if>

We promise this tutorial, may get got helped you lot inwards learning a few techniques through which you lot tin shroud a post from your homepage. Since, nosotros get got used display:none; css thence the search bots volition choke on to index it equally it is non completely removed from the origin code of your website.

No comments:

Post a Comment