Wednesday, August 2

Adding a video to the blogger background

Adding a video to the blogger background

So, are you tired of those pictured or colour backgrounds for your blog and want to do something more creative than the only answer is a video background. You can make your blogger background live with a video background. Whenever a visitor visits your blog they start automatically and increase user attraction. However, keep in mind everything come with a drawback and the drawback is that these background video can slow down your site loading. But, if you still want to use a background video I will suggest using a short optimized video.

How to add video to blogger blog background?

Step1: It's a simple and easy step, upload your video to YouTube or choose a video from YouTube.

Step2: Note down id of video from the address bar.

Step3: Now, Go to blogger > Theme > Edit html , Search for <body and add below line of code after <body .


Your code should now look something like this

<body id='wrapper-video' expr:class='&quot;loading&quot; + data:blog.mobileClass'>

Step4: Search for </head >, Paste below codes just above it and change red bold text with YouTube video id you saved in Step2.

<script src='' type='text/javascript'/>
<script type='text/javascript'>
/* jQuery tubular plugin
|* by Sean McCambridge
|* Copyright 2012
|* licensed under the MIT License
|* Enjoy.
|* Thanks,
|* Sean */
var videoWidth = 853;
var videoRatio = 16/9;
var defaultDiv = 'wrapper-video';
jQuery.fn.tubular = function(videoId,wrapperId) {
wrapperId = (typeof(wrapperId) == undefined) ? 'wrapper-video' : wrapperId;
t = setTimeout("resizePlayer()",1000);
jQuery('body').prepend('<div id="yt-container" style="overflow: hidden; position: fixed; z-index: 1;"><div id="ytapiplayer">You need Flash player 8+ and JavaScript enabled to view this video.</div></div><div id="video-cover" style="position: fixed; width: 100%; height: 100%; z-index: 2;"></div>');
jQuery('#' + wrapperId).css({position: 'relative', 'z-index': 99});
var ytplayer = 0;
var pageWidth = 0;
var pageHeight = 0;
var videoHeight = videoWidth / videoRatio;
var duration;
var iframe = '<iframe id="myytplayer" width="' + videoWidth + '" height="' + videoHeight + '" src="' + videoId + '?autoplay=1&controls=0&modestbranding=1&showinfo=0&hd=1&iv_load_policy=3&version=3&wmode=transparent&loop=1&playlist=' + videoId + '" frameborder="0" allowfullscreen></iframe>';
jQuery(window).resize(function() {
return this;}
function onYouTubePlayerReady(playerId) {
ytplayer = document.getElementById("myytplayer");
function resizePlayer() {
var newWidth = jQuery(window).width();
var newHeight = jQuery(window).height();
jQuery('#yt-container, #video-cover').width(newWidth).height(newHeight);
if (newHeight > newWidth / videoRatio) {
newWidth = newHeight * videoRatio; }
//]]></script><script type='text/javascript'>//<![CDATA[
$().ready(function() {

Step5: Save theme and enjoy the new look of your blog.


  1. This is putting the video on top of my whole website.

    1. hey, can you share your blog URL. so i can check it out.


      I've tried 3 slightly different tutorials and this happens with all of them.

    3. This tutorial is for putting video to your blog background and i find everything working in a link you share.

  2. "Sex and vicious wrongdoer registry background check" implies confirming that the chose candidate or representative does not have undisclosed feelings of certain sex and brutal violations in each locale where the candidate or worker right now or has dwelled.background check sites

  3. This puts it above the whole website, and the video isnt auto play u have to play it on your own

  4. This comment has been removed by the author.

  5. This comment has been removed by the author.


  6. hi you could help me, I already did the procedure with several blogger templates but it does not work.

  7. You always provide quality based posts, enjoy reading your work. html5 video events

  8. Replies
    1. Did you find out if this code is still working? Email me

  9. Does this code still work? I tried a ton of times and cant get it