Recent post no thumbnail (only title) for Blogger- blogspot- load very quick

0 nhận xét

Summary:

Hi all. to day, this article ,  I share with you a recent article how to create simple Blogger, not thumbnail, not much impact on your page load speed. If you like simplicity, then this would be a reasonable choice for you. Extended, you can create a widget that appears under certain Label.
Recent post no thumbnail (only title) for blogspot- load very quick have a advantage is the light and load very quickly. How to work:

Step 1: Go to blogger.com → Layout → Add widgets HTML / Javascript → Insert the following code and save.


after:

Step 2:Copy and paste this code below: 

<script>//<![CDATA[
var numpost = 5;
function rcpost(json){var entry=json.feed.entry,posturl;for(var i=0;i<numpost;i++){for(var j=0;j<entry[i].link.length;j++){if(entry[i].link[j].rel=='alternate'){posturl=entry[i].link[j].href;break;}}
var poststitle=entry[i].title.$t;document.write('<li><a href="'+posturl+'" rel="nofollow">'+poststitle+'</a></li>');}}
//]]>
</script>
<script src='/feeds/posts/summary?alt=json-in-script&amp;callback=rcpost'></script>

Update how to used Recent Post widget for displaying in the Label for Bloger 
Work as before, but this code is:
<script>
//<![CDATA[
var numpost = 5;
function rcpost(json){var entry=json.feed.entry,posturl;for(var i=0;i<numpost;i++){for(var j=0;j<entry[i].link.length;j++){if(entry[i].link[j].rel=='alternate'){posturl=entry[i].link[j].href;break;}}
var poststitle=entry[i].title.$t;document.write('<li><a href="'+posturl+'" rel="nofollow">'+poststitle+'</a></li>');}}
//]]>
</script>
<script src='/feeds/posts/summary/-/YourLabelname?alt=json-in-script&amp;callback=rcpost'></script>
Facebook Comments
Blogger Comments
Share knowledge

Copyright © 2016 - Share knowledge ®