Tuesday, August 23, 2016

Create A Colorful Latest Posts Widget

If you like to add a colorful latest posts widget, then install this one. This is an amazing widget which will show a collection of the latest articles in your blog sidebar with beautiful five different colors, which will attract the visitor’s attention.




<style scoped="scoped">
#ptb-repost {
font:normal normal 11px/normal Arial;
color:#333;
margin:0 auto;
padding:0;
min-height:100px;
background:transparent url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_hNCWjWlGBsisYIZzbwRqjBGXdefQ4MwOo-zEe6SO-juqtgAavnBN3Nf719PqHy6nzumoUOiqCXTytO8HTyGaSpVbReK6C6zdxmpmd7rr-5xYwjaFDTlzx_5NxKvTsv1WilVGjBl6VTg/s1600/loading.gif') no-repeat 50% 50%;
}
#ptb-repost li {
list-style:none;
margin:0;
padding:8px;
background-color:white;
border-bottom:1px solid #ddd;
}
#ptb-repost li a img:hover {
-webkit-transform: scale(1.1, 1.1);
-moz-transform: scale(1.1, 1.1);
-ms-transform: scale(1.1, 1.1);
-o-transform: scale(1.1, 1.1);
transform: scale(1.1, 1.1);opacity: 0.5;
}
#ptb-repost li a img {
float:left;
margin:0 10px 0 0;
padding:0;
border:none;
background:none;
outline:none;
}
#ptb-repost li a.title {
font:normal normal 12px/normal Oswald;
display:block;
text-decoration:none;
color:#fdfdfd;
}
#ptb-repost li a.title:hover {
text-decoration:none;
color:#ffffff;
}
#ptb-repost li:nth-child(1) {background-color:#E11E28;margin-right:0%}
#ptb-repost li:nth-child(2) {background-color:#FD3C03;margin-right:0%}
#ptb-repost li:nth-child(3) {background-color:#FECB09;margin-right:0%}
#ptb-repost li:nth-child(4) {background-color:#6EBE27;margin-right:0%}
#ptb-repost li:nth-child(5) {background-color:#149A48;margin-right:0%}
#ptb-repost li:nth-child(6) {background-color:#5BBFF1;margin-right:0%}
#ptb-repost ul li:nth-child(7) {background-color:#61469C;margin-right:0%}
#ptb-repost ul li:nth-child(8) {background-color:#863E86;margin-right:0%}
#ptb-repost li:nth-child(9) {background-color:#863E62;margin-right:0%}
#ptb-repost li:nth-child(10) {background-color:#815540;margin-right:00%}
</style>
<ul id="ptb-repost"></ul>
<script>
//<![CDATA[
var rp_homePage = "http://guidelinks.blogspot.com/",
    rp_numPosts = 5,
    rp_thumbWidth = 50,
    rp_numChars = 80,
    rp_sortByLabel = false,
    rp_noImage = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz3-02OenOk5DvWDIiFq9Wlw3jDRePO6dMvFDLr7e1WoMUijrxM8wpsXI1YA1yr7dl-xD67u70su0GC9fX1r9HbqV6Gx2JS2JX8g88GfNObGqBMYrArCPn9qbuf2jC0T4bl2vLfjgZYzw/s1600/minismallest-img.png",
    rp_newTabLink = false,
    rp_loadTimer = "onload";
//]]>
</script>
<script src='https://mas-aldi.googlecode.com/svn/trunk/js/rp-warna-warni.js' type='text/JavaScript'></script>

How to go about creating recent post widget in blogger blog.
  1. First of all, choose your favorite widget from above then click on view code button and copy all codes from the appearing pop-up window.
  2. Login your blogger account
  3. Go layout and add new gadget
  4. Select HTML/JavaScript and paste all code here.
  5. Save the gadget

Settings/Configuration

  • blogURL Fill with your blog URL
  • var numPosts Fill with the number of articles you want to display
  • var showpostthumbnail Select true if you want image thumbnail and false to eliminate
  • var showpostdate Select true if you want show date and false to eliminate
  • bloggertips Please replace with the desired label, when more than two words to use % instead of spaces (only for widget # 5)
I hope your done!
You can place your comment in below the comments box.

0 comments:

Post a Comment