Pages

Sponsored Ads

Free Browsing Updates
Enter your email address:

Trending Music Updates

DATA LITE DATA HEAVY
10MB 1GB
50MB 2GB
100MB 3GB
200MB 4GB
300MB 5GB
500MB 6GB

CALL or whatsapp Gideon To Buy Now!
Powered By TDY

Facebook badge

Copyright ©2013 Ballo by
Powered by Blogger.

Trending

Hello world

-->
Receive More Updates

Date: - Time:
SMS: Send FOLLOW BALLOWAP To 40404 For Free - EMAIL: azeezbello8@gmail.com

Saturday, 5 May 2012

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/AVvXsEjpdYa3Nysl0SwswcQzpAIEYMQdJzLmjx9mIJLoDveWRePY5gNpfQ8TIF68LIXBp1ZdP6jssPyozVEJNdEnCZCoWsgYLajmTRjIT2MOMoPoyQZ6cOkAIIkr59CWCrJOH-gTv_TeapPikc0/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/AVvXsEjpdYa3Nysl0SwswcQzpAIEYMQdJzLmjx9mIJLoDveWRePY5gNpfQ8TIF68LIXBp1ZdP6jssPyozVEJNdEnCZCoWsgYLajmTRjIT2MOMoPoyQZ6cOkAIIkr59CWCrJOH-gTv_TeapPikc0/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.

No comments:

Post a Comment