1- Login to blogger , go to page elements Presentation >> >> >> add a gadget most read posts
2 Set parameter this gadget as below
3- Introduction >> go to Edit HTML and look
<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'/>
4- Ramplacer code pérécedent by :
<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'> <b:includable id='main'> <b:if cond='data:title'><h2><data:title/></h2></b:if> <div class='widget-content popular-posts'> <ul> <b:loop values='data:posts' var='post'> <li> <b:if cond='data:showThumbnails == "false"'> <b:if cond='data:showSnippets == "false"'> <!-- (1) No snippet/thumbnail --> <a expr:href='data:post.href'><data:post.title/></a> <b:else/> <!-- (2) Show only snippets --> <div class='item-title'><a expr:href='data:post.href'><data:post.title/></a></div> <div class='item-snippet'><data:post.snippet/></div> </b:if> <b:else/> <b:if cond='data:showSnippets == "false"'> <!-- (3) Show only thumbnails --> <div class='item-thumbnail-only'> <div class='item-thumbnail'> <a expr:href='data:post.href' expr:title='data:post.title'> <b:if cond='data:post.thumbnail'> <img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/> <b:else/> <img alt='' border='0' expr:height='data:thumbnailSize' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ8Q-PD2GSqKXqeA0hznAI9v9Ede-KNKck2VoMEpbxpubmb2k2bi22SbtP339Sdp0S7VqGndoYYPPBcuL7TRwFCBP1LZKGhyphenhyphensbx4pAu3qSt59qrETcqhFFb9EjL8c_SL1qHqEqsF3-4A0/s72-c/default.png' expr:width='data:thumbnailSize'/>
</b:if> </a> </div> </div> <b:else/> <!-- (4) Show snippets and thumbnails --> <div class='item-content'> <b:if cond='data:post.thumbnail'> <div class='item-thumbnail'> <a expr:href='data:post.href' target='_blank'> <img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/> </a> </div> </b:if> <div class='item-title'><a expr:href='data:post.href'><data:post.title/></a></div> <div class='item-snippet'><data:post.snippet/></div> </div> <div style='clear: both;'/> </b:if> </b:if> </li> </b:loop> </ul> <b:include name='quickedit'/> </div> </b:includable> </b:widget>
Home »
Blogging Tips
» Messages in popular blogger
Messages in popular blogger
By: Unknown on Saturday, 24 January 2015 | 05:19
Subscribe to:
Post Comments (Atom)
+ comments + 1 comments
not working
Post a Comment