SEO Search

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 5 May 2012

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

Posted on 06:23 by Unknown

To hide images/pictures from our blogger posts and to make them appear only in homepage, we will have to 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 ( click on Proceed button )


 Step 2. Select "Expand Widget Template" (make a backup)

     Step 3. Find (CTRL + F) this code in your template:

        }]]></b:skin>

    Step 4. Copy and 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 everytime you create a post, firstly add the pic you want to hide and then switch to HTML tab where you'll see the HTML code of the image you have added that will look something like this:

    <div class="separator" style="clear: both; text-align: center;">
    <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgau6bxMpnG_fWpf2ymeEnTLoqVibA4V9WGqZGdzA3LUVDO8A_i4id9PEqC6RtRS9IBhBcOJGF-YeIbtVgqUCI_rOquocfAxWGJVkeOH9MefRCYkh5fo5We9vB18pB9kHymA4lpergWd_4/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/AVvXsEgau6bxMpnG_fWpf2ymeEnTLoqVibA4V9WGqZGdzA3LUVDO8A_i4id9PEqC6RtRS9IBhBcOJGF-YeIbtVgqUCI_rOquocfAxWGJVkeOH9MefRCYkh5fo5We9vB18pB9kHymA4lpergWd_4/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.

    Email ThisBlogThis!Share to XShare to Facebook
    Posted in Blog Design, Hacks, how to, posts | No comments
    Newer Post Older Post Home

    0 comments:

    Post a Comment

    Subscribe to: Post Comments (Atom)

    Popular Posts

    Categories

    • adsense
    • adsense optimization
    • adsense tips
    • Auto Video Template
    • avatars
    • blockquotes
    • Blog Design
    • blogger
    • blogger posts
    • color code generator
    • Comments
    • comments tricks
    • css
    • emoticons
    • Emoticons/Smileys
    • Facebook
    • feedburner
    • forum
    • Hacks
    • how to
    • how to make a blog
    • Image Effects
    • internet
    • jQuery
    • labels
    • menus
    • Navigation
    • navigation menu
    • popular posts
    • posts
    • read more
    • recent comments
    • recent posts
    • related posts
    • RSS
    • SEO
    • sitemaps
    • slideshows
    • social media
    • social media plugins
    • static pages
    • Templates
    • threaded comments
    • titles
    • tools
    • translating
    • webbligi
    • Widgets

    Blog Archive

    • ►  2013 (57)
      • ►  November (4)
      • ►  October (16)
      • ►  September (13)
      • ►  June (3)
      • ►  May (4)
      • ►  April (5)
      • ►  March (12)
    • ▼  2012 (73)
      • ►  July (1)
      • ►  June (3)
      • ▼  May (9)
        • Add Floating Social Media Sharing Buttons To Blogger
        • Create A Rollover Image Effect (change image on mo...
        • Add Facemoods Emoticons To Your Blogger Comments
        • How to Change Default Anonymous Avatar in Blogger ...
        • How To Change Avatar Size In Blogger Comments
        • How to Hide Blogger Sidebar to Display AdSense For...
        • Show Blogger Image only in Homepage and Hide it in...
        • How to Remove Showing Posts With Label in Blogger
        • Recent Posts Widget with Thumbnails for Blogger/Bl...
      • ►  April (23)
      • ►  March (30)
      • ►  February (7)
    Powered by Blogger.

    About Me

    Unknown
    View my complete profile