Enjoy cooking
Browse through over
650,000 tasty recipes.
Home » » How to Add "Read More" Official Button to Blogger

How to Add "Read More" Official Button to Blogger

Written By Muhammad Abdullah Malik on Sunday, November 30, 2014 | 3:07 AM


  • Sign In to Blogger Dashboard
  • Go to Template -> Edit HTML
  • Find </head>
  • Copy the following code above it

<script type='text/javascript'>
var thumbnail_mode = "no-float" ; 
summary_noimg = 400;  /* Summary length if no image*/
summary_img = 300; /* Summary length with image*/
img_thumb_height = 200; /*Image Height*/
img_thumb_width = 200; /*Image Width*/
</script>
<script type='text/javascript' src='http://netoopscodes.googlecode.com/svn/branches/Js%20files/auto-readmore-blogger.js' ></script>
  • If you add CSS codes to style jump link in your blog, then See the Update (Below,Updated)
  • Then Find (Ctrl+F)  <data:post.body/> and replace it with the following code
  • If you find more than one <data:post.body/> replace all occurences.          


<b:if cond='data:blog.pageType == &quot;item&quot;'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
<data:post.body/>
<b:else/>
<div expr:id='&quot;summary&quot; + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);
</script>
<div style='clear: both;'/>
<span class='rmlink' style='font-weight:bold;padding:5px;float:right;text-align:right;'><a expr:href='data:post.url' >Read more...</a></span><a href="http://netoopsblog.blogspot.com"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifPdh85E96T_p8PEFzgLAK3ZfODJ1sox4jxa8Agop1LhquuW-dANsgb-JA14L08qT7CIkJbvFDNIFsCmiaPqPzhaGx58n2xpQwAbmGne6ptJtsVof83BVysoP-4-6Zu6X9eYwWMxnetkE/s1600/1x1juice.png"></a>
</b:if>
</b:if>
  •  Save Template.
  • UPDATE [17.08.2013]

       In the above code, only a simple link to the post shows in the homepage. If you want to style that link or did you add css codes to style the jumplink, then add the following code instead of the above.
      • Then Find (Ctrl+F)  <data:post.body/> and replace it with the following code
      • If you find more than one <data:post.body/> replace all occurrences.
      <b:if cond='data:blog.pageType == &quot;item&quot;'>
      <data:post.body/>
      <b:else/>
      <b:if cond='data:blog.pageType == &quot;static_page&quot;'>
      <data:post.body/>
      <b:else/>
      <div expr:id='&quot;summary&quot; + data:post.id'>
      <data:post.body/>
      </div>
      <script type='text/javascript'>
      createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);
      </script>
      <div style='clear: both;'/>
      <div class='jump-link'><a expr:href='data:post.url' expr:title='data:post.title' >Read more...</a></div><a href="http://netoopsblog.blogspot.com"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifPdh85E96T_p8PEFzgLAK3ZfODJ1sox4jxa8Agop1LhquuW-dANsgb-JA14L08qT7CIkJbvFDNIFsCmiaPqPzhaGx58n2xpQwAbmGne6ptJtsVof83BVysoP-4-6Zu6X9eYwWMxnetkE/s1600/1x1juice.png"></a>
      </b:if>
      </b:if>
      Congratulations, You have done the Hack to your Blog. I think you enjoyed this article.
    SHARE

    About Muhammad Abdullah Malik

    0 comments :

    Post a Comment