Show Blogger Image only in Homepage and Hide it in Post Page


To hide images/pictures from blogger posts and make them appear only in homepage, we will add just a small piece of CSS code in our template and then use the class "hidepic" each time we want to hide an image.

Just follow the next steps:

Step 1. Go to Dashboard - Template - Edit HTML


 Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box:

 Step 3. Type or paste this code inside the search box then hit Enter to find it:
]]></b:skin>
Step 4. Paste the following code just below it
<b:if cond='data:blog.pageType != &quot;index&quot;'>
<style>
.hidepic{
display: none;
}
</style>
</b:if>
Step 5. Save the Template.

Now, each time you create a post, first add the picture that you want to hide and then switch to the HTML tab where you'll see the HTML code of the image that you added - it will look something like this:
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnccgh8bWa8r0kF41_9qA69V1yflUlWFyUBkNm2qIP9FBlfXW72Oa7dCyetL2ZGxhjAjEY0sIwpQebcTHvktVtmJ8Qh0QAfD8p_JByvfqu00nnxq8WrRX6YEI2uDKQYg8FS3YE5AbeTlw/s1600/fire_bird_by_fhrankee-d32af8v.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnccgh8bWa8r0kF41_9qA69V1yflUlWFyUBkNm2qIP9FBlfXW72Oa7dCyetL2ZGxhjAjEY0sIwpQebcTHvktVtmJ8Qh0QAfD8p_JByvfqu00nnxq8WrRX6YEI2uDKQYg8FS3YE5AbeTlw/s320/fire_bird_by_fhrankee-d32af8v.png" width="320" /></a></div>

Note: it should be at the exact location where your image has been added 
(if the image is at the middle of the text, then the code should be found at the middle)

Step 6. Replace "separator" with "hidepic" - see the screenshot below:

If you need more help, please leave a comment below.

Comments/disqusion
24 comments

  1. says:

    Very good! thank you for this tutorial!
    So, here as you used first pic to show on your homepage and that pic is not shown here on post page! wao! thanks

  2. says:

    What if i want to show images both on post and homepage

  3. says:

    Oh dude! just ignore the code, don't implement it and you'll get it.. :P

  4. says:

    By default image is shown on both, homepage and post page

  5. says:

    thanks

  6. says:

    I am searching a lot about this. Thanks a lot for this tips it help me a lot.

  7. says:

    hi author, any idea how to hide the description on the homepage but show on post pages? Without using js if possible...thanks!

  8. says:

    What if i don't have this line in my template?

  9. says:

    Thanks, but i need help on how to hide the title and description of my blogger blog to the site visitors, and make them visible to search engines only.

  10. says:

    This tutorial is what I want to know in the past few weeks. Thanks bro!

  11. says:

    how can i also hide the header for a widget? i tried .hidepic > h2 and .hidepic h2 neither will work.. is it something with the code that only hides the div?

  12. says:

    Is there a way to hide a standalone pic on the post page? Right now I have a main pic at top of website that stays no matter what story is clicked on. Would be helpful if anyone knew how to hide it on a post page but to stay on home page. Thanks.

  13. says:

    Good info! Works for me. Thanks.

  14. says:

    super....!

  15. says:

    Awsomeeeeeeeeeeeeee :)

    csworldx.blogspot.com

  16. says:

    my template HTML don't have }]]> code have only . how can i do? do you have any way?

  17. says:

    Search for ]]></b:skin> only (without the curly bracket).

  18. says:

    When I search ]]> it doesnt find anything? :(

  19. says:

    Please make sure that there isn't any blank space before/after it.

  20. says:

    hello, how can i hide in in mobile to??

  21. says:

    very helpful post thanks

  22. says:

    GOD Bless
    Thanks Team

  23. says:

    Nice tutorial. But what I need is 'how to hide images from homepage but not from post'. Opposite of this tutorial actually. Thanks in advance

  24. says:

    Nice. But how about doing reverse, hide the image in main and make it appear in post page