Thursday, 13 June 2013

Stylish Related Posts With Thumbnail Widget For Blogger

Stylish Related Posts
Showing related posts with thumbnail below your post body is very important if you want to increase your blog page views. It also helps to reduce bounce rate of blog. Once your visitors finish reading the article, they will be keen to read more about related topic. It's a best practice to show more related posts in blogger blog which help to increase reader engagement in reading more posts and they will stay at your blog for longer time. And if they stay at your blog for longer time then it will be a plus point to your blog which helps to improve its ranking in search engines as Google considered visit time as a ranking factor. Let see how to add this widget into your blog.


Add LinkWithin To Blogger


  1. Go to Linkwithin.

  2. Fill some easy information and click on Get Widget button. See below screenshot.

  3. related posts widget

  4. A page will open. Now click on Install Widget link.

  5. related posts

  6. Next click on Edit Template link.

  7. edit template
  8. Now replace the code which you see with the below one:

  9. <b:includable id='main'><b:if cond='data:blog.pageType == "item"'><data:content/></b:if></b:includable>

  10. Now click on Add Widget button and drag the gadget below post body. See below screenshot.

  11. drag gadget

  12. Click the save arrangement button and you are done!
Related posts for blogger widget is now added to your blog. At this time it will look very dull like this: 
demo

To make it stylish and beautiful we have to add some CSS code into our blog template. So, let see how to do it.

Apply CSS To Change Look


Now the interesting part is applying CSS to make over the default dull gadget to a stylish related posts widget. Let see how to add related post plugin code in blogger.
  1. Log in to your blogger account.
  2. Go to Template.
  3. Backup blog template before doing any changes.
  4. Click on Edit HTML > Proceed.
  5. Search this code ]]></b:skin> and replace it with the below code.


  6. /*---Related Posts---*/
    #linkwithin_logolink_0 {
    display:none!important;
    }
    #lws_0 {
    clear: both!important;  
    margin: 0 0 20px 0!important;
    }

    .linkwithin_outer {
        margin: 1px 0px !important;
       background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRR0rvH0CFfRfaTMU7QXktvardgh76jBsgPgS46OE6N70DFw2l30q21UvLgheYKFMHubscLZm5pypeHcy1V7PkDqQvXSRdWquLy8SpFAPUJdyykse-8IUQ3knEEKJhkb1Ak3VrnbKgpEg/s400/mbt-related-posts.gif") repeat scroll rgb(42, 42, 42);
        height: 260px;
          width:590px!important;
        padding: 0px !important;
        box-shadow: 0px 4px 4px -4px rgba(0, 0, 0, 0.7) !important;
        border-radius: 5px 5px 5px 5px;
        }

    .linkwithin_inner {
    width:590px!important;
    }

    .linkwithin_text {
    margin: 0px !important;
        padding: 10px !important;
        font-family: "Droid Sans",Helvetica,Arial,sans-serif;
        font-size: 1.35em;
        color: rgb(255, 255, 255);
        font-weight: 700;
        line-height: 1.35em;
        text-transform: capitalize;
        background-color: rgb(18, 18, 18);
        border-bottom: 1px solid rgb(0, 0, 0);
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
        background-image: -moz-linear-gradient(center top , rgb(36, 36, 36), rgb(18, 18, 18));
    }
    .linkwithin_posts a {
       border-right:0px!important;
        margin: 10px 0px 10px 20px !important;
    }

    .linkwithin_posts a:hover {
       border-right:0px!important;
        margin: 10px 0px 10px 20px !important; background:none!important;
    }
    #linkwithin_logo_0 {display:none;}
    .linkwithin_img_0 {
        border: 1px solid #666 !important;
        padding: 1px !important;
        width: 100px !important;
        height: 70px !important;
        margin-right: 20px !important;
        overflow: hidden;
       background:#666!important;
    }
    .linkwithin_img_0:hover {
      border: 1px solid #666!important;
    opacity:0.8;
    }
    .linkwithin_img_0 div {
        width: 100px !important;
        height: 70px !important;
    }
    .linkwithin_title {
        color: rgb(255, 255, 255) !important;
        font-size: 1.1em !important;
        display: block;
        padding: 0px 10px 0px 0px !important;
        font-weight: 700 !important;
        line-height: 1.45em !important;
        margin-top: 10px !important;
        font-family: "Droid Sans",Helvetica,Arial,sans-serif !important;
       text-decoration:none!important;
      width:120px!important;
    }
    .linkwithin_title:hover {
    text-decoration:underline!important;
    }
    ]]></b:skin>

  7. Click on save template button.
  8. Done!
Congratulation! Now the default linkwithin widget is converted into a stylish related posts widget that will fetch the posts from the same label and show similar posts at the end of your post body.

Need Help?


If you have any doubt about this gadget then feel free to ask me. I will try to solve your all queries. Friends if you like this related posts with thumbnail gadget then please share this post. It will encourage me to write more interesting posts for you. Thanks!

2 comments:

Follow Me on Facebook.com

About

Followers

Popular Posts