Welcome back! In this article, I will show you how to control the visibility of images inside Blogger posts. You will learn how to hide images inside articles while keeping them visible only on the homepage, or hide them on specific pages. This method improves your blog’s loading speed, SEO, and overall user experience.
How to Hide Images in Blogger
Fast loading speed is essential for SEO on Blogger. Large images can slow down page load time, which affects search performance and user experience. To help you optimize your blog, here is a simple CSS method that hides images inside posts but keeps them visible on the homepage.
How to Add the Code to Your Template
- Go to your Blogger Dashboard → Theme → Edit HTML.
- Search for this tag:
]]></b:skin> - Paste the following code directly above it:
<b:if cond='data:view.isPost'>
<style>
.hideimage{
display:none;
}
</style>
</b:if>
How to Control Image Visibility
If you want to hide a specific image inside any post, follow these steps:
Reminder:
Repeat these steps for every image you want to hide.
- Insert your image normally inside the post.
- Switch to HTML view mode.
- Replace the wrapper class
separatorwithhideimage.
<div class='hideimage'>
<img src='image.png' width='320' height='320'>
</div>
<div class='separator'>
<img src='image.png' width='320' height='320'>
</div>
Done!
This concludes our guide on "How to Hide Images Inside Blogger Posts". We will meet again in a new tutorial here on the blog. Stay safe and have a wonderful day! 🙂