Replacing Post Summary In Minima Templates - A few days ago there was a blogger friend who asked me how to add a post brief post template to new minima colored .
Okay, here's how to apply:
First login to Blogger> Template> Click Edit HTML
Search and delete the code below:
Okay, here's how to apply:
First login to Blogger> Template> Click Edit HTML
Search and delete the code below:
/* CSS Read More */
a.adreadmore {position:absolute;display:inline-block;bottom:20px;background:#fff;color:#666;padding:5px 10px;font-family:'Open Sans';font-size:12px;font-weight:400;border-radius:2px;border:1px solid #e9e9e9;transition:all .1s;}
a.adreadmore:hover,a.adreadmore:active {text-decoration:none;background:#f9f9f9;color:#444;}
a.adreadmore:after {content:'\f0da';font-family:Fontawesome;font-weight:normal;text-align:center;margin-left:5px;display:inline-block;line-height:10px;transition:all .1s;}
Then find the code below
<div>
<data:post.snippet/>
</div>
<a class='adreadmore' expr:href='data:post.url + "#more"' expr:title='data:post.title'> Read More </a>
Remove and replace the code above with this code
<div>
<div expr:id='"summary" + data:post.id'><data:post.body/></div>
<script type='text/javascript'>createSnippet("summary<data:post.id/>");</script>
</div>
Next add the script below just before the closing tag </head>
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:blog.pageType != "static_page"'>
<script type='text/javascript'>
snippet_count = 160;
//<![CDATA[
function removeHtmlTag(n,e){if(-1!=n.indexOf("<")){for(var t=n.split("<"),i=0;i<t.length;i++)-1!=t[i].indexOf(">")&&(t[i]=t[i].substring(t[i].indexOf(">")+1,t[i].length));n=t.join("")}for(e=e<n.length-1?e:n.length-2;" "!=n.charAt(e-1)&&-1!=n.indexOf(" ",e);)e++;return n=n.substring(0,e-1),n+"..."}function createSnippet(n){var e=document.getElementById(n),t=snippet_count,i='<div class="snippets">'+removeHtmlTag(e.innerHTML,t)+"</div>";e.innerHTML=i}
//]]>
</script>
</b:if>
</b:if>
Save the template.
To increase or decrease the number of posts in the post summary, please edit this code in the script above
snippet_count = 160;
The way above can apply to all the templates that I share here and did not rule out you can apply also to other templates.
After applying the code above you can:
- Save space on the main page view of the blog
- Display blog becomes more neat and interactive
- Add anchor link to the title keyword
And it is recommended you to:
- Add a jump break to every post after the first paragraph
- Change the blog site feed settings to prevent from auto post blogs
Similarly about How to Change Post Summary On Template Minima , if there are difficulties can my friend ask through the comment field. thank you

