Best Way to Add YouTube Video in Blogger - How to Embed YouTube Video on Blogger

Adimin
0

✅ Benefits To use This Method

- Responsive YouTube Videos Size in Any Device.
- Show Only Your Related Videos when User Pause the video.
- Show Only Your Videos at the End of the video.



✅ Steps to Add / Embed YouTube Videos in Your Blogger Blog Post
- First Copy the CSS Code Which We Provide in this post.
- Head Over to Blogger Dashboard.
- Select your blog.
- click on Layout
- click on Theme Designer
- Click on Advanced
- Now select "ADD CSS" from the drop down menu
- Now Paste the CSS Code
- Copy the Embed code which we provide in this post.
- Go Back to Blogger Dashboard.
- Open the post where you want to ADD or EMBED YouTube Video.
- Now Simply Remove VID-ID (from Embed code) and add Your Video ID.
- Publish or Update Your Post
- Done, Now You can see Responsive YouTube Video on the Post.


✅ Please Note
- You Need to Add CSS Code only one time in Your Blogger Theme
- You Need Use iframe Embed code whenever you want to add YouTube Video on the post.

1. Copy This CSS code and Paste it in Your Blogger Theme File



/*--------YT-Responsive--css------*/

.ytiframe{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  height: 0;
}

.ytiframe iframe{
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*---xxx-----YT--Responsive-css---xxxx----*/


2. Copy This Embed Code and Paste it in HTML of Your Blog Post

<div class="ytiframe"><iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="auto" src="https://www.youtube-nocookie.com/embed/VID-ID?rel=0" title="YouTube video player" width="100%"></iframe></div> 

# Copy This Embed Code and add in blog post for Autoplay Video

<div class="ytiframe"><iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="auto" src="https://www.youtube-nocookie.com/embed/VID-ID?&autoplay=1&rel=0" title="YouTube video player" width="100%"></iframe></div>

 



Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top