If you are a video blogger, if you are doing videos blogging using YouTube, this is exactly what you are looking for: A Related Videos Widget With Thumbnails for Blogger. Actually this is not just a widget only with video thumbnails but with post thumbnails too. Basically it’s a related videos and posts widget with thumbnails for video blogger. So you can say it’s a related video-post hybrid widget or whatever you want. Anyway this is the deal.
This is what you have to do:
Log in to Blogger Dashboard. Go to Layout > Edit HTML
(It’s always a very good habit to backup your template before whatever you do. No matter how much you know about it, just backup it first of all.)
If you are using updated Blogger interface click Proceed
Check Expand Widget Templates
Now use keyboard shortcut Ctrl + F and find,
and replace it with below code:
Let’s take a break and see what you can change here to adjust the appearance and style of the widget as you want it.
Basically you can change highlighted colors in the CSS code as you wish. Or if you know CSS, it’s OK to play with the style a little bit.
Then you can change:
var maxrslts = 40;
Maximum number of related posts to display in widget.
var brkerclr = "#000000";
Color of the splitter between related posts.
var SamePstTtl = "Related Videos";
Title of the widget.
var nopreview = https://sites.google.com/site/fpforcodes/nopreviewyet.png
Default thumbnail to show.
That’s all editing.
Again use same Ctrl + F and find below line of code
<div class='post-footer-line post-footer-line-1'>
If you can’t find it then try to find this one
<p class='post-footer-line post-footer-line-1'>
If you have changed your template lately, there could be more than just one line. If there are two lines, I suggest you to use the first one. If there are three lines use second. Still can’t figure out? Shoot a comment.
Now immediately after any of those lines paste below code.
(I say immediately because related posts should appear after the post right away, right? But if you have decided to add some other codes or widgets like Share buttons, it’s ok to add this below them. The most important thing is locate below code where you need to appear related posts.)
Ah, there is one thing I forget to mention. I have added ‘Facebook Like button’ and ‘Google Plus button below every related posts. If you have used Facebook like and Google Plus code in your blog, buttons will automatically appear. If you are not willing to use them or having troubles with them let me know.
And one last this. I developed this code for a video blog and it works great. But in some situations you may have troubles with implementation. If you have any troubles with the widget shoot a comment. If you had trouble and could figure it out be kind enough to tell it too. Because it sure will help to keep the good work up.
Click Here to check a demo site with this widget.
Thanks to ’3dclassic’ I noticesd some troubles with my bloggertube video blogging templete created by dantearaujo.net . So I made a little change with previouse code and made a new one for bloggertube users. So what you have to do is (only if you are a bloggertube user) simply replace:
from the 1st code with:
Then You have to change the location where you paste the second code.Use same Ctrl + F and find something like this. (Just search for “post-footer” you will get the other line right before it.),
<b:if cond='data:blog.pageType != &quot;item&quot;'><br /><br /><div class='post-footer'>
Now immediately before those lines paste that second code. Tell me if something went wrong.