Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

Automatic Read More Hack with fixed pages

After a long time the most awaited Blogger feature called static pages or stand alone pages has been launched in drafts . But it has some issues with automatic expandable summaries read more trick for blogspot. With this new code you can minimize your blogger posts so that only some of your description and image appears on the homepage and the rest of all is shown when you visit that post or static page.
you might have familiar with earlier read more hack.

Just Follow this simple steps :

  1. First log in to your blogger account.
  2. Then click on Design Link.
  3. Then Click on Edit HTML.
  4. Check Expand widget content.
  5. Then Search for below code :
    </head>
  6. Add the below code before </head> :
    <script type='text/javascript'>var thumbnail_mode = &quot;no-float&quot; ;
    summary_noimg = 430;
    summary_img = 300;
    img_thumb_height = 130;
    img_thumb_width = 160;
    </script>
    <script type='text/javascript'>
    //<![CDATA[
    function removeHtmlTagundefinedstrx,chop){
    ifundefinedstrx.indexOfundefined"<")!=-1)
    {
    var s = strx.splitundefined"<");
    forundefinedvar i=0;i<s.length;i++){
    ifundefineds[i].indexOfundefined">")!=-1){
    s[i] = s[i].substringundefineds[i].indexOfundefined">")+1,s[i].length);
    }
    }
    strx = s.joinundefined"");
    }
    chop = undefinedchop < strx.length-1) ? chop : strx.length-2;
    whileundefinedstrx.charAtundefinedchop-1)!=' ' && strx.indexOfundefined' ',chop)!=-1) chop++;
    strx = strx.substringundefined0,chop-1);
    return strx+'...';
    }
    function createSummaryAndThumbundefinedpID){
    var div = document.getElementByIdundefinedpID);
    var imgtag = "";
    var img = div.getElementsByTagNameundefined"img");
    var summ = summary_noimg;
    ifundefinedimg.length>=1) {
    imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"></span>';
    summ = summary_img;
    }
    var summary = imgtag + '<div>' + removeHtmlTagundefineddiv.innerHTML,summ) + '</div>';
    div.innerHTML = summary;
    }
    //]]>
    </script>

    <script type='text/javascript'>var thumbnail_mode = &quot;no-float&quot; ; summary_noimg = 430; summary_img = 300; img_thumb_height = 130; img_thumb_width = 160; </script> <script type='text/javascript'> //<![CDATA[ function removeHtmlTagundefinedstrx,chop){ ifundefinedstrx.indexOfundefined"<")!=-1) { var s = strx.splitundefined"<"); forundefinedvar i=0;i<s.length;i++){ ifundefineds[i].indexOfundefined">")!=-1){ s[i] = s[i].substringundefineds[i].indexOfundefined">")+1,s[i].length); } } strx = s.joinundefined""); } chop = undefinedchop < strx.length-1) ? chop : strx.length-2; whileundefinedstrx.charAtundefinedchop-1)!=' ' && strx.indexOfundefined' ',chop)!=-1) chop++; strx = strx.substringundefined0,chop-1); return strx+'...'; } function createSummaryAndThumbundefinedpID){ var div = document.getElementByIdundefinedpID); var imgtag = ""; var img = div.getElementsByTagNameundefined"img"); var summ = summary_noimg; ifundefinedimg.length>=1) { imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"></span>'; summ = summary_img; } var summary = imgtag + '<div>' + removeHtmlTagundefineddiv.innerHTML,summ) + '</div>'; div.innerHTML = summary; } //]]> </script>

  7. Then Find this <data:post.body/>
  8. Then Replace <data:post.body/> with the below code :
    <b:if cond='data:blog.pageType == &quot;static_page&quot;'><b:else/> <b:if cond='data:blog.pageType != &quot;item&quot;'>
    <div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/></div>
    <script type='text/javascript'>createSummaryAndThumbundefined&quot;summary<data:post.id/>&quot;);
    </script> <span class='rmlink' style='float:right;padding-top:10px;'><a expr:href='data:post.url'><img src='http://i37.tinypic.com/351icqx.jpg'/></a></span>
    </b:if></b:if>
    <b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/></b:if><b:if cond='data:blog.pageType == &quot;static_page&quot;'><data:post.body/></b:if>

    <b:if cond='data:blog.pageType == &quot;static_page&quot;'><b:else/> <b:if cond='data:blog.pageType != &quot;item&quot;'> <div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/></div> <script type='text/javascript'>createSummaryAndThumbundefined&quot;summary<data:post.id/>&quot;); </script> <span class='rmlink' style='float:right;padding-top:10px;'><a expr:href='data:post.url'><img src='http://i37.tinypic.com/351icqx.jpg'/></a></span> </b:if></b:if> <b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/></b:if><b:if cond='data:blog.pageType == &quot;static_page&quot;'><data:post.body/></b:if>

  9. Then Click on Preview if no error occurs then just click on save.

Customization :

Now let us see how to customize the code to suit your style :

  • summary_noimg = 500 ;
  • This code will decide how much characters must be shown in the post if that post doesn’t contain any images. I have selected 500 characters.. you can customize it to suit ur template.

  • summary_img = 400 ;
  • If the post contains image , then this code will decide how many characters must be shown in that post. Change the number of characters to be shown to suit your template.

  • img_thumb_height = 130;
  • This tag decides the height of the thumbnail to be shown in the post. Vary the number 130 to suit your template.

  • img_thumb_width = 281 ;
  • This tag decides the width of the Thumbnail image to be shown

Changing Read More Image :

1. Find this :

http://i37.tinypic.com/351icqx.jpg

2. Change it to your desired image you want.

Having Text Instead Image :
1. Find this :

<img src=’http://i37.tinypic.com/351icqx.jpg’/>

2. And Replace it with the desired text you want to use.

Subscribe via Email

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to print (Opens in new window) Print
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to email a link to a friend (Opens in new window) Email

Related

May 29, 2010 Ritesh Sanap Blogger Tutorials Blogger Hacks, Blogger Problems

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation

Previous Previous post: How to add Attribution widget in blogger
Next Next post: Trily – Blogger Template

Currently Trending

  • How to download Specific parts of YouTube videos
    How to download Specific parts of YouTube videos
  • Windows Vista CD key
    Windows Vista CD key
  • How to retrieve my Demonoid username
    How to retrieve my Demonoid username
  • How to add Logo to Thesis theme
    How to add Logo to Thesis theme
  • How to Delete Feedbacks from JetPack Contact Form
    How to Delete Feedbacks from JetPack Contact Form
  • List Of All 255 Keyboard All Alt Key Codes
    List Of All 255 Keyboard All Alt Key Codes
  • h4x0r ( Hacker ) - Blogger Template
    h4x0r ( Hacker ) - Blogger Template

Get Latest post in your Inbox

Random Posts

Converting a Folder into a Drive

August 8, 2008 By Ritesh Sanap Leave a Comment

Make Firefox Work Faster Than Ever

February 29, 2008 By Ritesh Sanap Leave a Comment

Format HDD with Notepad

July 7, 2008 By Ritesh Sanap Leave a Comment

Hide Your IP Using Proxy Server

February 29, 2008 By Ritesh Sanap Leave a Comment

Different way’s to shutdown your pc

January 16, 2008 By Ritesh Sanap Leave a Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2025 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean