Blogger Related Posts with Thumbnails: LinkWithin
Keep your readers engaged with LinkWithin related posts with thumbnails widget. The related posts thumbnails will appear under each post, linking to related stories from your blog archive. It will make your old posts accessible to new or casual readers of your blog, thus increasing traffic.
This tutorial will show you how to install LinkWithin widget to a Blogger blog. I’m splitting this tutorial into two sections -one is for installing default widget and another one is for installing custom widget.
Before proceeding with this widget, you might want to read about another related posts widget: nRelate Related Posts plugin. nRelate’s widget allows more customization, and has a posts reindex option.
a) Installing default LinkWithin widget
Adding a default widget is actually pretty straightforward.
- Go to LinkWithin.
- Enter your email address and blog URL.
- Select Blogger for the platform and select the number of stories.
- Click Get Widget! and the widget will be added to your blog.
- Done! The related posts thumbnails and links should appear under each post now.
b) Installing custom LinkWithin widget
If you would like to customize the widget, proceed with the rest of this tutorial. You can change the placement of the related posts thumbnails and the phrase that appears above them. You can also specify on which pages they should appear.
Here we go,
I. Get your Site Id
- Go to LinkWithin.
- Perform the same steps (steps 2 to 4) as in a) above, except this time choose Other for the platform.
- You will be given a code snippet, similar to the snapshot.
- Don’t copy the code. Just jot down or copy the Site Id number for later use.
II. Adding in the widget code
- Login to your Blogger account.
- Go to Dashboard > Design > Edit HTML.
- Back up your template.
- Copy the code below and paste it right before
</body>
tag in your template:<b:if cond='data:blog.pageType == "item"'> <script> var linkwithin_site_id = SITE ID NUMBER; linkwithin_text='YOUR CUSTOM PHRASE'; </script> <script src="http://www.linkwithin.com/widget.js"></script> <a href="http://www.linkwithin.com/"><img src="http://www.linkwithin.com/pixel.png" alt="Related Posts with Thumbnails" style="border: 0" /></a> </b:if>
- Put your Site Id number in code line 3.
- Change the “You might also like:” phrase with your own phrase in code line 4.
- The code above will make the related posts appear only on post pages. If you want to display them on all pages, just remove code line 1 and 8.
- Save and view your blog.
III. Repositioning related posts display (optional)
By default the related posts thumbnails will appear after each post body, ABOVE the post footer. That means it appears (in most cases) above your labels, comments link and timestamp.
A few users mentioned that they prefer the thumbnails to appear BELOW the post footer, and asked me how can they make it so.
So here it is folks. Follow these steps to place the related posts at the very end of your post section:
- In Design > Edit HTML, with Expand Widget Templates checkbox ticked, find the following code:
<b:include data='post' name='post'/>
- Add
<div class="linkwithin_div"></div>
right after the line, like so:<b:include data='post' name='post'/> <div class="linkwithin_div"></div>
- Click Save. You're done!
Enjoy!
106 comments to "Blogger Related Posts with Thumbnails: LinkWithin"
u are a pro ;) thanks for the info ;)
@Nick
Thank you for dropping by and commenting :)
how can you customize the linkwithin related post header(font size, font type)? please help me
tou are a genius
@Tu Patz
Go to Design > Edit HTML and add this CSS code right before ]]>< /b:skin> line:
.linkwithin_text {font-family:verdana,arial,tahoma;font-size:20px;}
use your own values for font-family and font-size,
Tanks bro,i must learn more and more!
@Ahmat Susanto
You're welcome. Have to agree with you, learning is a never ending process afterall.
This is a great widget GreenLava! But, there is not more spaces to place the enough related post :(
@Anup @ Hack Tutors
Aah...so many widgets, so little space :)
Hi, this is a great. I never knew you could use this with Blogger. I really like this blog and I will take my time and visit some more posts here. I have both Blogger and Wordpress blogs and I really wish more people would focus on using Blogger, so I'm happy to find your site. Thanks!
@Ms. Ileane
You're always welcomed here. To stay current, do consider subscribing.
Hi, I try to use the code on my blog but the 'Linkwithin' still didn't appear?! Kindly advise.
http://white--gardenia.blogspot.com/
@Anonymous
This tutorial is not intended for Blogger classic template. I've tried searching for a classic template tutorial, but to no avail.
I wrote some css tips to style linkwithin widget. If you want change the default design from linkwithin you may have a look to: styling-linkwithin-widget.html
thanks. it looks great :)
i like your posts. simple & to the point.
Hello, from your newest follower and student. You are already so helpful. Thank you.
@dj Goddessa of Funk Sanctum Radio
My pleasure. Thanks for following.
awesome!
thanks a lot , good post
http://hapatchan.blogspot.com
I've just done it today. It looks amazing, and so easy with LinkWithin. I was putting it off thinking it takes a lot of effort, how I wish I tried it before!
Thanks again, I've improved my blog so much thanks to your
tips and tutorials on bloggersentral. By following you,
I 've improved design of my blog, and did things I never thought possible with my non-existing programming skills:)
@Liliana
I love it when things work out :)
Is there a way to center link within under my post? Also, is there a way to get rid of the long border that separates each thumbnail?
Thanks
@debi
Go to Design > Template Designer > Advanced > Add CSS and add this inside the text box:
.linkwithin_inner {margin:0 auto !important;}
.linkwithin_posts a {border:none !important;}
Merry Christmas :)
Dear Green Lava, nice tips, and i'd already use it for my blog, its appear on my post but doesn't shows any realted post,. please help me, can you help me for fix this?
Love,
Beny Ricardo Sadewo
http://www.purple-snap.com/
@Beny Ricardo Sadewo
I'm not sure why they don't show up.
Are you sure you've put the correct site id?
okay, i've already check for ID number, it's correct, but still not display a realted post, check my blog, T_T
Thanks for this info! I used your tip III for repositioning related posts display. Is there anyway to pull up "You might also like" to be a little closer to "leave a comment"?
Thanks,
Traci Bunkers
http://www.TraciBunkers.blogspot.com
@Traci Bunkers
Add this:
.linkwithin_text {padding: 0px 0 5px !important;}
if that's not enough, add this too:
.post {margin-bottom:0;}
@Traci Bunkers
I forgot...add them right before ]]>< /b:skin> line in Design > Edit HTML.
@Beny Ricardo Sadewo
I guess it's time to send them (LinkWithin) an email.
Thank god you exisit. i have spent hours and hours trying to find where to place that piece of code and everyones advice on the net was wrong BUT yours. thank you for your imput it was a great help and spot on :) Frank
http://www.distortyourphoto.com/
If you select "Get Widget" and then click the "Blogger" platform, then the widget will be displayed in the homepage below each post summary. To avoid it, you will have to manually get the code and paste it before "post-footer"
thanks, it helps a lot! and it works well on my blog. thanks again!
@Rumah Dahli
Great! Hopefully it helps increase your sales.
Hi!!!
How do I make it to appear in every page... Not only "main page" or posts??? ... In the "contact page", "most read", ...???
Thanks!!!!
@Carlos
Hi,
To make it appear on all pages, remove code line 1 and line 8.
Can you please tell me how to change the default thumbnail used by linkwithin? For some reason linkwithin doesn't detect images in the posts I write using blogpress on my iPhone. For these posts linkwithin shows a thumbnail of my signature...
Thank you xx
How do i add more thumbnail..max is 5 iwant it 6...if this is not possible how could I center align the thumbnails.
@philbert
Add this CSS snippet in the custom CSS box:
.linkwithin_inner {margin:0 auto;}
The posts LW shows are not really 'related posts' at all. They have no relation to the main post! Its kind of annoying. Any advice?
No, I tell a lie. It seems to have sorted itself out :)
As always, thanks again G.
Thanks for the tips...
That was Awesome,nice post
Hi, it it possible to remove the line around the images of the thumbnails. thanx!
@Marcello
I don't think that's possible. The contents lie in an iframe, which makes it impossible to apply CSS to.
I removed lines 1 and 8 but it is still not showing up on my other pages... is there something else I can do?
Is there a way to have it pull the posts from the same label only?
@Anonymous
For label-based related posts, you might want to try this.
Trying to set this up for my blog--but thumbnails are not showing! Please help!
i want to display 5 posts instead of 3. Even i selected the option of 5 posts, it is the same script I am getting from linkwithin. Moreover the images shown are very old post, nothing sort of posts related to the tags.
@ബഷീà´°് Vallikkunnu
Try the link given in reply #48.
the absolute best information on the web by far. cheers from australia
Thanks for sharing.
You may check out the post below on How to Install Linkwithin Related Posts with Thumbnails on WordPress
http://www.quertime.com/article/arn-2010-11-09-1-how-to-install-linkwithin-related-posts-with-thumbnails-on-wordpress/
i generally do not leave comments on many sites...but you, sir are a genius...i almost spent the entire weekend figuring out how to move the linkwithin widget to the absolute bottom of every post...
5 minutes on this site and I was done...feel free to visit my site...http://mathewsajiv.blogspot.com/
I agree with everyone here: SOS UN GENIO GREENLAVA! Thank God for this site and for you! By the way, is there a way to show Linkwithin below the post footer? For some reason it shows above in my blog. Thanks so much for your help! YOU ROCK!!! XoXo
Thanks Dear. I have done this successfully with your help. See it:www.worldTricks.co.cc
You wondered me so much..about a year ago i also think to edit this and you have done it. Thanks again.Keep it up.
Before I try this, I'm wondering if the "Optional" Step III is possible by itself or if I really need to do step I and II before I can do step III.
@KiLotr
If you are new to LinkWithin (ie. you don't have the site ID yet), steps I and II are must-dos.
Hi, is it possible to change the font of the links-images? If yes, how?
@AryHann
Add this CSS snippet into the custom CSS box:
.linkwithin_title {font-family: georgia !important;}
replace "georgia" with your preferred font name.
Thanks, it worked very good.
It works but it recommends my 3 first posts on every other post. Is thre a way to recommend related stories not just 3 first stories :(
Thank you for your tutorial! I just added it to my blog.
Nice... thanks very much for all your information
Thank you again for a very informative post. I just installed this widget in my blog. I love it! :D
thank you. the widget would not install for me but following your clear instructions, i was able to install it manually.
Thanks! Discovered another way to spice up my blog. still digging more for other helpful tips in your blog. Keep it up.
A BIG HUGE ENORMOUS THANKS!!
Can I change an image after Linkwithin has created the link? The reason is because I dont like the image that the link displays and I would like to change it, do you know how to do that?
@The Film Connoisseur
I don't think you can change it.
AWESOME! thankyou
Thanks bro:this is a great.
i like your posts.simple & to the point.
Hey there, I've got a bit of a problem here.
http://mikeramblesaboutstuff.blogspot.com/
Based on what's on my blog at the moment, I want the link within widget to appear below the Share buttons. I followed your steps for moving it's placement and what it does is place the link within widget below the buttons, but against the grey background instead of the white post body.
Any suggestions to have it placed against the white post body instead?
@Mike
Find this code:
[div class='post-footer-line post-footer-line-3'][/div]
and place the linkwithin div right below it, like so:
[div class='post-footer-line post-footer-line-3'][/div]
[div class='linkwithin_div'][/div]
I was just wondering, what's the name of the theme you're using on your site? I really like it!
@SEO Directory
It's my own custom template.
Thanks!! I try it by editing the html and I failed! Really frustrated. Then, thanks to your tutorial it helps me yeah!
I saw in your replies that you believed this widget couldn't be added to the "classic" blogger.
I chose to get along without this widget for as long as blogger told me to "upgrade". Not gonna happen.
Reading your post gave me the clue I needed to add this neat widget.
Tell people with the classic blogger template to use the code from "other". Works perfectly.
I added a new div around the code on blogger, to customize, but on wordpress I added style info to the empty .linkwithin_inner div.
piece of cake.
I followed your tutorial and everything works perfectly! Thank you! But is there way to pull up the whole linkwithin closer to comments. I followed step III and I used code in comment 28 but it only pulls text up? Thank you in advance!
http://thebasicss.blogspot.com
@ANA
The big gap is due to your post footer's bottom margin.
Find this code:
.post-footer {
background-color: #FFFFFF;
border-bottom: 1px solid #FFFFFF;
color: #7F7F7F;
font-size: 90%;
line-height: 1.6;
margin: 20px -2px 6em;
padding: 5px 10px;
}
the current bottom margin is 6em. You want to replace it with a smaller value.
Problem fixed! Thank you so much! Keep up the good work!
http://thebasicss.blogspot.com
Thanks VERY much for that tidbit of moving it BELOW your posts and not before the comments, that was driving me crazy and to think it was such a simple lien of code!
Hello! Thank You very much for the info! Your website is the only place I could find it! :D
I was wondering though, can the "You might Also Like" text be DELETED instead of just edited? I don´t want any text to appear above the thumbnails.
Thanks in advance!
@Dayse
You can hide it using CSS, by going to Template Designer > Advanced > Add CSS and adding this snippet:
.linkwithin_text {display: none;}
That TOTALLY worked! Thank you, thank you! You rock!
Hi Thanks you for your advice, but I have new related post same like LinkWithin
thanks bro, you are Awesom! :D
This what I was looking for.... Thanks pal for providing step by step tutorial...
awesome tutorial! thanks :)
Great! Thanks you very much! I don’t get older. I level up
Great! Thanks you very much! I don’t get older. I level up
Hi, thanks for this tutorial! I've done everything as you said, but it is still showing only one story (and it is always the same no matter what the post is about) AND there still no thumbnails... I followed steps I and II carefully, and I have customized the phrase, that appears ok, but the rest is still not showing :(
Any advice?
I just want to thank you so much about this very useful post!! Have a beautiful day!
you put another related posts plugin .. i want it
@يا جامد
I use nRelate. For the tutorial, search for "nRelate" using the search box on the menu bar.
Thank you so much for this information. Level up for me
thank you very much! my blog looks cleaner now.
cleabanal.blogspot.com
thank u!!! u saved my ass! :)
You are a genius.:) THANK YOU.
2 things!
1. What code can I add to change the amount of related posts displayed? I currently only show 4 but would like 6.
2. How do I get the linkwithin "more sauce" or "related posts" text to not be bolded?
www.auniesauce.com
@Annelise @ Aunie Sauce
1. Already mentioned in step a)3.
2. Go to Template > Customize > Advanced > Add CSS and paste this CSS rule:
.linkwithin_text {font-weight:normal !important;}
position your cursor at the end of the code and press Enter key.
I have been searching a long time for a solution to center Linkwithin widget. Your comment here is just the answer. Thanks a lot.
I'll subscribe to your site and spend some more time reading useful posts here.
Thank you, thank you! I couldn't figure out how to move the darn linkwithin thing and you made it sooo easy. Thanks so much!
Great post! Helpful answers!
Great Help! Thank you so much!!
I just used section "III. Repositioning related posts display (optional)", on my blog, and it just worked beautifully. Thanks!
Comments on this post are closed.