Dear visitor now i'm sharing How to Add Automatic Read-More Option for blogger.Read More button or hop link is used clip the full article into two pieces and First fragment of Text and images display in the Homepage. When you make a post may be it includes long snippets and images that are too long, then what should you do? You have to add <!-- more --> or click on Jump link to separate. Here I am going to show you how to Automatically put read more to Blogger posts. In this Automatic read more hack every is automatic and you need not bother about the too long length of posts.Let us see how to do it.
You May Also like:How to Add Readmore Option in Blogger Post.
Just Follow This Below step:
You can also limit the length of post
Set the size of Image, height and width separately
Disable Image
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 hop link in your blog, then See the Update
Then Find (Ctrl+F) <data:post.body/> and replace it with the following code
If you locate more than one <data:post.body/> replace all occurrences.
<b:if cond='data:blog.pageType == "item"'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == "static_page"'>
<data:post.body/>
<b:else/>
<div expr:id='"summary" + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
createSummaryAndThumb("summary<data:post.id/>");
</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/AVvXsEiu7mUJOQhYi6Su22zWwGoHnq12bGovYQ06NZH3A2Te1XZp6XJ0mcK4eXf1FzMCCyYy1uBeZuIEf9pfCKHwjEtT-mwKEWejxilAlqB22D0eDePtWNvHSKmZhTM0wl6Yq7z0Wg3yf3obfwE/s1600/1x1juice.png"></a>
</b:if>
</b:if>
Save Template.
In the above code, only a easy link to the post shows in the homepage. If you desire 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 locate more than one <data:post.body/> replace all occurrences.
You can also limit the length of post
Set the size of Image, height and width separately
Disable Image
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 hop link in your blog, then See the Update
Then Find (Ctrl+F) <data:post.body/> and replace it with the following code
If you locate more than one <data:post.body/> replace all occurrences.
<b:if cond='data:blog.pageType == "item"'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == "static_page"'>
<data:post.body/>
<b:else/>
<div expr:id='"summary" + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
createSummaryAndThumb("summary<data:post.id/>");
</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/AVvXsEiu7mUJOQhYi6Su22zWwGoHnq12bGovYQ06NZH3A2Te1XZp6XJ0mcK4eXf1FzMCCyYy1uBeZuIEf9pfCKHwjEtT-mwKEWejxilAlqB22D0eDePtWNvHSKmZhTM0wl6Yq7z0Wg3yf3obfwE/s1600/1x1juice.png"></a>
</b:if>
</b:if>
Save Template.
In the above code, only a easy link to the post shows in the homepage. If you desire 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 locate more than one <data:post.body/> replace all occurrences.
<b:if cond='data:blog.pageType == "item"'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == "static_page"'>
<data:post.body/>
<b:else/>
<div expr:id='"summary" + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
createSummaryAndThumb("summary<data:post.id/>");
</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/AVvXsEiu7mUJOQhYi6Su22zWwGoHnq12bGovYQ06NZH3A2Te1XZp6XJ0mcK4eXf1FzMCCyYy1uBeZuIEf9pfCKHwjEtT-mwKEWejxilAlqB22D0eDePtWNvHSKmZhTM0wl6Yq7z0Wg3yf3obfwE/s1600/1x1juice.png"></a>
</b:if>
</b:if>
Congratulations, You have done .If you like this please share this post with your friends.
Post a Comment