To hide images/pictures from blogger posts and make them appear only in homepage, we will add just a small 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
]]></b:skin>
Step 4. Paste the following code just below it
<b:if cond='data:blog.pageType != "index"'>Step 5. Save the Template.
<style>
.hidepic{
display: none;
}
</style>
</b:if>
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/AVvXsEhGVYTYdhZ-U6aEPKfsAgdAgqGG0wA_AUtJ_9MX6o_UQpG2LFW_R5-Yy2ruNTEH8OtG_Dv5vmaz8PUG0TqpBQDpTnW6nEW4E0Xtrv-npokMgQd7F-jC6cJZo-uGw5vaFCwqMLZUdu2AwZA/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/AVvXsEhGVYTYdhZ-U6aEPKfsAgdAgqGG0wA_AUtJ_9MX6o_UQpG2LFW_R5-Yy2ruNTEH8OtG_Dv5vmaz8PUG0TqpBQDpTnW6nEW4E0Xtrv-npokMgQd7F-jC6cJZo-uGw5vaFCwqMLZUdu2AwZA/s320/fire_bird_by_fhrankee-d32af8v.png" width="320" /></a></div>
(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:
need more help, please leave a comment below.



No comments:
Post a Comment