Tuesday, February 9, 2016

How To Add Together You Lot Subway Scheme Video Alone Amongst Url Inwards Blogger Template

How To Add You Tube Video Only With URL In Blogger Template How To Add You Tube Video Only With URL In Blogger Template
Hello Folks,Today nosotros are come upward amongst a unique fob to embed y'all video conduct amongst url alone no to a greater extent than embed code :) etc.In this shipping service nosotros volition explicate How to Add YouTube Video With URL Only In Blogger Template.Lot's Of visitors bespeak for this matter too today nosotros accept developed this fob too nosotros are presenting infront of you.The benefits of this trick is that y'all tin flaming only write the url of your video too your blogger template volition display amongst YouTube URL code is totally responsive too nosotros accept tested inwards all versions too its working perfectly.And it volition equally good non upshot your page speed.We are using coffee script too  for styling unopen to CSS.

How youtube url fob works?

Just become too exercise a novel shipping service too re-create the url of your desired y'all subway video too glue it inwards the shipping service editor box too issue it.To catch this fob only follow the steps mentioned below.

installation steps:

Step .1 Go to https://www.blogger.com and Sign inwards to your account.
Step .2 Now From Blogger Dashboard click on ->Template ->Edit HTML.
Step .3 Now Search For closing </body> tag In Your Template By Using CTRL+F Keys or CMD+F
Step .4 Now Paste the next below code only above </body> tag.
<b:if cond='data:blog.pageType == &quot;static_page&quot; too data:blog.pageType == &quot;item&quot;'>
<script>
//<![CDATA[
if (typeof(jQuery) == 'undefined') {document.write("<scr" + "ipt type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js\"></scr" + "ipt>");};
var videoEmbed = {
    invoke: function(){    
        $('.post-body').html(function(i, html) {
            provide videoEmbed.convertMedia(html);
        });  
    },
    convertMedia: function(html){
          var blueprint = /(?:http?s?:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=)?(.+)/g;    
        if(pattern.test(html)){
              var replacement = '<img class="video-thumbnail" alt="How To Add You Tube Video Only With URL In Blogger Template How To Add You Tube Video Only With URL In Blogger Template" height="300" src="http://ytimg.googleusercontent.com/vi/$1/0.jpg" width="600"/> <div class="videoyoutube"><div class="video-responsive"><iframe height="281" width="500" src="http://www.youtube.com/embed/$1" frameborder="0" allowfullscreen></iframe></div></div>';        
              var html = html.replace(pattern, replacement);
        }
         return html;
    }
}
setTimeout(function(){
    videoEmbed.invoke();
},800);
//]]>
</script> </b:if>
Step .5 Now Search For </head> tag In Your Template By Using CTRL+F Keys or CMD+F
Step .6 Now glue the Following below code only to a higher house </head> tag.
<b:if cond='data:blog.pageType == &quot;static_page&quot; too data:blog.pageType == &quot;item&quot;'>
<style type='text/css'>
@media covert too (max-width:1024px){
body,.content-outer, .content-fauxcolumn-outer, .region-inner {width: 100%!important;min-width:100%!important;padding:0!important}
trunk .navbar {height: 0!important;}
.footer-inner {padding: 30px 0px!important;}
}

@media covert too (max-width: 603px){
.main-inner .columns {padding-right: 0!important;}
.main-inner .column-right-outer {width: 100%!important;margin-right: 0!important;}
}
.videoyoutube{
    margin:20px auto;
    width:100%;
}
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border:0;
}
img.video-thumbnail{
    width:100%;
    height:auto;
border:none;
}
</style>
</b:if>
Step .7 Now Save your template..Done !

How to utilization it? 

Just become to your dashboard->create novel post after that only glue the y'all subway url within the shipping service editor box but earlier posting click on HTML tab too hence insert the y'all subway url.That's it !!Look below for example
How To Add You Tube Video Only With URL In Blogger Template How To Add You Tube Video Only With URL In Blogger Template

No comments:

Post a Comment