Top 10 Ultimate SEO Plugins For WordPress 2017-18


Add Recent Posts Image Gallery in Blogger

Recent post image gallery for blogger
If you are not taking advantage from Recent or Related post widgets so you are dropping your page views traffic and don’t forget that traffic is a big factor for every successful blog and in traffic the main thing is only visits and page views, if you are getting less visits on your blog so don’t be upset because still you can make your blog user friendly from which you will observe high traffic and less bounce rate in your Web Analytics i.e. Google Analytics.

I have shared some different types of Recent and Related post widgets but this one has special features and benefits as mentioned in below Widget features.

Widgets Features

  1. It is free from junk and errors and totally secure from heavy Java script compression, which decrease your site page speed.
  2. It is totally SEO and User friendly and made it professionally and simple.
  3. The best and main features of this related post widget which make it different from others that “It is compatible and applicable to all HTML layouts whether it is in the HTML post mode or in HTML/Java script gadget.
  4. It is responsive and will be fitted on every media query.
  5. It will not blur and crack your post image, it shows you and your upcoming visitor’s best image quality.

How to Add Recent Post Image Gallery in Blogger

First open your blogger account.

Move on Template and don’t forget to back up the blog theme before implementing code in it.

Now paste the below code just before the </head> tag.
// Blogger Recent Posts Gallery by
// Tutorial at
// Free to use or share, but please keep this notice intact.
function bsrpGallery(root) {
var entries = root.feed.entry || [];
var html = ['<div class="bsrp-gallery nopin" title="Get this from">'];
for (var i = 0; i < entries.length; ++i) {
var post = entries[i];
var postTitle = post.title.$t;
var orgImgUrl =$thumbnail ?$thumbnail.url : '';
var newImgUrl = orgImgUrl.replace('s72-c', 's' + bsrpg_thumbSize + '-c');
var links = || [];
for (var j = 0; j < links.length; ++j) {
if (links[j].rel == 'alternate') break;
var postUrl = links[j].href;
var imgTag = '<img src="' + newImgUrl + '" width="' + bsrpg_thumbSize + '" height="' + bsrpg_thumbSize + '"/>';
var pTitle = bsrpg_showTitle ? '<span class="ptitle">' + postTitle + '</span>' : '';
var item = '<a href="' + postUrl + '" target="_blank" title="' + postTitle + '">' + imgTag + pTitle + '</a>';
html.push('<div class="bs-item">', item, '</div>'); }
Then open your CSS style sheet and add the below styles just before </b:skin> style sheet.
/* Protechnify Recent Posts Image Gallery CSS Start */
.bsrp-gallery {padding:10px; clear:both;}
.bsrp-gallery:after {content: "";display: table;clear: both;}
.bsrp-gallery .bs-item a {position: relative;float:left;margin: 0 15px 15px 0 !important;text-decoration:none;}
.bsrp-gallery .bs-item .ptitle {background: rgba(0, 0, 0, 0.5); background: #7f7f7f\9; display: block; clear: left; font-size: 11px; line-height:1.3em; height: 2.6em; position: absolute; text-align: left; bottom: 10%; color:#fff; padding:2px 5px; word-wrap: break-word; overflow:hidden;}
.bsrp-gallery a img {background: #eee; float: left; padding: 5px; box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); -moz-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); transition: background-color 0.4s; -webkit-transition: background-color 0.4s; -moz-transition: background-color 0.4s;}
.bsrp-gallery a:hover img {background: #ee7e22;}
/* Protechnify Recent Posts Image Gallery CSS End */
Finally, add this below code wherever you want to display this widget, you can also add this code in post, page section or in the HTML/Java script gadget.
var bsrpg_thumbSize = 150;
var bsrpg_showTitle = true;
<script src="/feeds/posts/summary?max-results=8&alt=json-in-script&callback=bsrpGallery"></script>
  • Change 150 with your desire number, if you want to change image size.
  • Replace True to False if you don’t want to show the Overlay effect on the image.
  • If you want to show only special labels so add the below feed address instead of the current.
  • Change Max-results with your maximum recent posts numbers.
Check This:
Check your new recent post image gallery widget on your blog and see it is correctly adjust or not, if yes so don’t forget to subscribe with us and if not so ask freely in below comments with correct problem interface.


Post a Comment