Featured

Embed YouTube Video with AMP Play OnClick in Blogger

Embedding Youtube Video with AMP is a way to optimize loading in your web pages or blog. For this tutorial you are going to Embed YouTube Video with AMP Play OnClick and on Lightbox. By using this lightbox we can also make visitors focus more on the video content presented when clicking the play button or clicking on the video thumbnail image by extinguishing other content behind the lightbox overlay. There are two ways that we are going to use for this tutorial, by using BUTTON and video THUMBNAIL

Embed YouTube Video with AMP Play OnClick in Blogger


1. Play amp-youtube on click using Button

Live Demo - BUTTON


Let us begin with the tutorial:

Step #1: Log in to your Blogger Account and Go to your Blogger Dashboard.

Step #2: Click Theme --> Edit HTML.

Step #3: Find </head> by Pressing CTRL + F (Windows) or CMD + F (MAC)

Step #4: Now paste the below code above/before  </head> tag.


<script async="async" custom-element="amp-lightbox" src="https://cdn.ampproject.org/v0/amp-lightbox-0.1.js"></script>
<script async="async" custom-element="amp-youtube" src="https://cdn.ampproject.org/v0/amp-youtube-0.1.js"></script>

Step #5: For CSS find this tag: ]]></b:skin>, just above it add the code below.


.center,.video-box{text-align:center}
.lightbox-video{background:rgba(0,0,0,.8);width:100%;height:100%;position:absolute;display:flex;align-items:center;justify-content:center}
.video-box{width:100%;max-width:800px;margin:0 auto}
.btn-play{color:#fff;background-color:#D32F2F;padding:10px 16px 10px 40px;position:relative;font:500 18px Roboto,sans-serif;line-height:1.3333333;border-radius:6px;margin-bottom:5px;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;display:inline-block;background-image:none;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}
.btn-play:active,.btn-play:focus,.btn-play:hover{color:#fff;background-color:#C62828;border-color:#B71C1C}
.btn-play:before{content:"";color:#fff;background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAzP9d_P-EKKungS3AI6bx2sttoQYKtQeGCAW1Q-u5BsBMpt6-7O-aNWnHZ2jJCUtjXxYTLUCKamfZPtjiI06vwHdmRBd-DuexPBiU9CDqBA0_jECowo-ugI61BrNZQ2KOV7eUS35MU3Wv/s1600/play.png);background-size:cover;background-repeat:no-repeat;width:30px;height:40px;position:absolute;left:0;top:50%;margin-top:-20px}


For posting: Use the below code, paste in your blogger post editor.


<amp-lightbox id="open-video" layout="nodisplay">
<div class="lightbox-video" on="tap:open-video.close,btn-play.show" role="button" tabindex="0" aria-label="Close Video">
<div class="video-box">
<amp-youtube id="video" data-videoid="Eng0tMkA6Y8" height="270" layout="responsive" width="480" data-param-controls="0" data-param-rel="0" data-param-showinfo="0" data-param-modestbranding="1" data-param-autohide="1" hidden></amp-youtube>
</div>
</div>
</amp-lightbox>
<div class="center">
<button id="btn-play" class="btn btn-lg btn-play" on="tap:video.show, video.play, btn-play.hide, open-video" aria-label="Play Video">Play Video</button>
</div>

Note: Change the red code with your Youtube Video ID.




2. Play amp-youtube on click with Thumbnail

Live Demo - THUMBNAIL


Let us begin with the tutorial:

Step #1: Log in to your Blogger Account and Go to your Blogger Dashboard.

Step #2: Click Theme --> Edit HTML.

Step #3: Find </head> by Pressing CTRL + F (Windows) or CMD + F (MAC)

Step #4: Now paste the below code above/before  </head> tag.


<script async='async' custom-element="amp-lightbox" src="https://cdn.ampproject.org/v0/amp-lightbox-0.1.js"></script>
<script async='async' custom-element='amp-youtube' src='https://cdn.ampproject.org/v0/amp-youtube-0.1.js'></script>

Step #5: For CSS find this tag: ]]></b:skin>, just above it add the code below.


.video-box,.video-img{width:100%;margin:0 auto;text-align:center}
.lightbox-video{background:rgba(0,0,0,.8);width:100%;height:100%;position:absolute;display:flex;align-items:center;justify-content:center}
.video-box{max-width:800px}
.video-img{max-width:600px;position:relative}
.playonimage{cursor:pointer;margin:auto;width:56px;height:56px;-webkit-border-radius:50%;border-radius:50%;background-color:rgba(0,0,0,.2);background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7e_hvx_P6RezuDIzHAlecKPE3NNIHHLGAtHRdl_71w_DpoDKRAasKpq8qfDkNG1wWkdwPm92AnpKfCvI-PjFdjRChQxPia0ucPIlVcvcU6KZOGPYaKngJ2dXeGQ51YixftvzFapdqyZCV/s1600/play_circle_filled_white_48dp.png);background-position:center;-webkit-background-size:48px 48px;background-size:48px 48px;position:absolute;top:0;bottom:0;left:0;right:0}


For posting: Use the below code, paste in your blogger post editor.


<amp-lightbox id="open-video" layout="nodisplay">
<div class="lightbox-video" on="tap:open-video.close,btn-play.show" role="button" tabindex="0" aria-label="Close Video">
<div class="video-box">
<amp-youtube id="video" data-videoid="Eng0tMkA6Y8" height="270" layout="responsive" width="480" data-param-controls="0" data-param-rel="0" data-param-showinfo="0" data-param-modestbranding="1" data-param-autohide="1" hidden></amp-youtube>
</div>
</div>
</amp-lightbox>
<div class="video-img" id="btn-play" on="tap:video.show, video.play, btn-play.hide,open-video" role="button" tabindex="0" aria-label="Play Video">
<amp-img alt="Video" src="https://i.ytimg.com/vi/Eng0tMkA6Y8/mqdefault.jpg" width="637" height="356" layout="responsive"></amp-img>
<div class="playonimage"></div>
</div>


Note: Change the red code with your Youtube Video ID.

Conclusion

Congrats !! You have made it. Now you have learned How to Embed YouTube Video with AMP Play OnClick in Blogger. Hope you liked this tutorial, if you enjoyed then please share it with your friends, please stay tuned with Us for more such awesome tutorials. Happy Blogging!
Learn more »

Enside Blogger Template

Enside Blogger Template is a responsive and high-quality template. It can create and manage different types of blog e.g news, newspaper, magazine, publishing or review site needs. The elegant magazine theme is capable of 3 different layouts. It is one of the most simple and powerful magazine template for blogger. Built on blogger's latest interface, it gives you fat loading platform to publish your blog. It is packed with various customized widgets and let's you customized the theme color. More features for this template below.

Enside Responsive Blogger Template


Features: Enside Blogger Template


  • Seo Ready
  • Responsive Design
  • Ads Ready
  • SEO Optimized
  • Ads Ready
  • Well Documentation
  • Fast Loading
  • Social Bookmark Ready
  • Email Newsletter Widget
  • Drop Down Menu
  • Tabbed Sidebar
  • Auto Read More With Thumbnail
  • Multi Dropdown Menu


Screenshot: Enside Blogger Template


Enside Blogger Template


Information: Enside Blogger Template


How to Install Blogger Templates: Click Here
Template name : Enside
Platform: Blogger/Blogspot
Author :  templatesyard.com

Download: Enside Blogger Template


Demo Click here

Download Click here
Learn more »

FastPro Blogger Template

FastPro Blogger Template is a responsive and highly seo optimized coding. It can create and manage blog like fashion, magazine, business, entertainment etc. It comes with featured post widget in 4 grid styled post, minimal comments with emoji, mega menu, popular post, related post, dropdown menu widget pre installed. More features for this template below.

Features: FastPro Blogger Template


  • Seo Ready
  • Responsive Design
  • Ads Ready
  • SEO Optimized
  • Featured Post
  • Well Documentation
  • Fast Loading
  • Custom Follow by Email Widget
  • Mega Menu
  • Drop Down Menu
  • Social & Search engine meta tags
  • Customized Comments
  • Sticky Sidebar
  • Auto Read More With Thumbnail
  • Colourful Social Widgets


Screenshot: FastPro Blogger Template






Information: FastPro Blogger Template


How to Install Blogger Templates: Click Here
Template name : FastPro
Platform: Blogger/Blogspot
Author :  Templatesyard

Download: FastPro Blogger Template


Demo Click here

Mediafire Click here
Learn more »

Backpack Clean and Responsive Traveling Blogger Template

Backpack template is clean and responsive Template for blogger. It can create and manage to use this template for traveling, photography and even video blog. Some of its best features are, this template is packed with great features and Professional admin layout and Compatible with major browsers (IE8+,Mozilla,Chrome,Safari). It is well Documentation and created by top SEO technologies so the website will generate much more organic traffic than before. More features for this template below.

Features: Backpack Traveling Blogger Template


  • Responsive Design
  • Pin it button on images
  • Advanced Search Engine Optimization
  • Ads Ready
  • Well Documentation
  • Threaded Comment
  • Recent Post By Label
  • Auto Author Image
  • Auto resize thumbnail image


Screenshot: Backpack Traveling Blogger Template




Backpack Clean and Responsive Traveling Blogger Template

Information: Backpack Traveling Blogger Template


How to Install Blogger Templates: Click Here
Template name : Backpack Traveling Template
Platform: Blogger/Blogspot
Author :  themexpose

Download: Backpack Traveling Blogger Templateg


Demo Click here

Download Click here
Conclusion

That's it, I would say Goodluck to you on your journey in customizing your blog. This template can be a great help to attract visitors on your blog. Thank for visiting this blog. If you like this post please don't forget to share it with your friends.
Learn more »

Dark Mag Games Blogger Template

Dark Mag Games Blogger Template is a responsive and high-quality gaming blogger template for gamer enthusiast. It can create and manage gaming based blog to publish gaming hacks and mod related to online or offline games. Some of its best features are, this template is packed with great features and admin options, slideshows and much much more! Documentation is included in your downloaded package. More features for this template below.

Dark Mag Games Blogger Template


Features: Dark Mag Games


  • Seo Ready
  • Responsive Design
  • SEO Optimized
  • Ads Ready
  • Well Documentation
  • Minimalist
  • Breadcrumbs Navigation
  • Post Thumbnails
  • Drop Down Menu


Screenshot: Dark Mag Games



Dark Mag Games Blogger Template


Information: Dark Mag Games


How to Install Blogger Templates: Click Here
Template name : Dark Mag Games
Platform: Blogger/Blogspot
Author :  SoraTemplates

Download: Dark Mag Games


Demo Click here

Download Click here
Learn more »

Adding Pre code in Blogger Site

Pre code is used when you want to emphasize and organize codes in your blog post. Though you can used blockqoute but Pre code looks more professional and at the same time it gives your visitors the emphasis what kind of code you are sharing.

Pre code has unique feature such as, you can specify the kind of code your sharing e.g. CSS, JAVASCRIPT and HMTL, display in professional way and easy to select script by double click on Pre code block.

Adding Pre code in Blogger Site


Adding Pre code in Blogger Site

This widget is powered by Font awesome version 4.3.0 so first we need to add font awesome file to your blogger template.

Step #1: Log in to your Blogger Account and Go to your Blogger Dashboard.

Step #2: Click Theme --> Edit HTML.

Step #3: Find <head> by Pressing CTRL + F (Windows) or CMD + F (MAC)

Step #4: Now paste the below code below/after <head> tag.


<link href='//netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' rel='stylesheet'/>

Step #5: Now find ]]></b:skin>  by Pressing CTRL + F (Windows) or CMD + F (MAC)

Step #6: Copy and paste the below code above /before  ]]></b:skin>


 
/* CSS Pre Code */
pre {
    background: #444444;
    white-space: pre;
    word-wrap: break-word;
    overflow: auto;
}
pre.code {
    margin: 20px 25px;
    border-radius: 4px;
    border: 1px solid #292929;
    position: relative;
}
pre.code label {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 80%;
    color: #3C99F9;
    position: absolute;
    left: 1px;
    top: 15px;
    text-align: center;
    width: 60px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}
pre.code code {
    font-family: "Inconsolata","Monaco","Consolas","Andale Mono","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
    display: block;
    margin: 0 0 0 60px;
    padding: 15px 16px 14px;
    border-left: 1px solid #555;
    overflow-x: auto;
    font-size: 13px;
    line-height: 19px;
    color: #ddd;
}
pre::after {
    content: "double click to selection";
    padding: 0;
    width: auto;
    height: auto;
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 12px;
    color: #ddd;
    line-height: 20px;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    transition: all 0.3s ease;
}
pre:hover::after {
    opacity: 0;
    visibility: visible;
}
pre.css code {
    color: #4899CE;
}
pre.html code {
    color: #EF662A;
}
pre.javascript code {
    color: #F4C22B;
}

Step #7: Now find </body>  by Pressing CTRL + F (Windows) or CMD + F (MAC)

Step #8: Copy and paste the below code above /before  </body>


<script type='text/javascript'>
$('i[rel="pre"]').replaceWith(function() {
    return $('<pre><code>' + $(this).html() + '</code></pre>');
});
var pres = document.querySelectorAll('pre,kbd,blockquote');
for (var i = 0; i < pres.length; i++) {
  pres[i].addEventListener("dblclick", function () {
    var selection = getSelection();
    var range = document.createRange();
    range.selectNodeContents(this);
    selection.removeAllRanges();
    selection.addRange(range);
  }, false);
}
</script>

Step #9: save your template.

How to use Pre code in your Blog Post?

Note: Editor should be in HTML view..


<pre class='code html'><label><i class='fa fa-html5 fa-lg'></i> HTML</label><code>
Add HTML code here
</code></pre>

<pre class='code css'><label><i class='fa fa-css3 fa-lg'></i> CSS</label><code>
Add CSS code here
</code></pre>

<pre class='code javascript'><label><i class='fa fa-code fa-lg'></i> JS</label><code>
Add JavaScript code here
</code></pre>


Conclusion

Congrats !! You have made it. Now you have learned How to Add Pre code in Blogger Site. Hope you liked this tutorial, if you enjoyed then please share it with your friends, please stay tuned with Us for more such awesome tutorials. Happy Blogging!
Learn more »

Beauteous Responsive Blogger Template

Beauteous Blogger Template is a responsive and high-quality template created for Fashion, Travel, Lifestyle and Food bloggers. Some of its features are, Elegent & Clean Design, Beautiful Slider and Carousel, Sticky Sidebar that scroll with Your Browser Window and Sticky Menu Bar gets displayed when you scroll up. More features for this template below.

Beauteous Responsive Blogger Template


Features: Beauteous Responsive Blogger Template


  • Newsletter Subscription
  • Responsive Design
  • Ads Ready
  • Related Post Widget
  • Ads Ready
  • Well Documentation
  • Simple Instagram Widget
  • SEO & Google Analytics Ready
  • Page Navigation Menu
  • Fast Loading


Screenshot: Beauteous Responsive Blogger Template


Beauteous Responsive Blogger Template

Information: Beauteous Responsive Blogger Template


How to Install Blogger Templates: Click Here
Template name : Beauteous
Platform: Blogger/Blogspot
Author :  YoTemplates

Demo: Beauteous Responsive Blogger Template


Demo Click here

Download Click here
Learn more »

MaxSeo Blogger Template

MaxSeo Blogger Template is a responsive and and modern looking theme for blogger blogs, Loaded with various options and premium widgets. Best suitable for blogs like news, tech, travel, blogging, latest trends, events, food, Fashion, Sports, Video, Healthy, etc. Made with perfection and it has a user-friendly design that makes it clean, minimal and elegant at the same time. More features for this template below.

Features: MaxSeo Blogger Template


  • Mega Menu
  • Seo Ready
  • Responsive Design
  • Ads Ready
  • SEO Optimized
  • Ads Ready
  • Well Documentation
  • Fast Loading
  • Social Bookmark Ready
  • 3 Types of Featured Widgets
  • Multi Dropdown Menu
  • Colourful Social Widgets


Screenshot: MaxSeo Blogger Template


MaxSeo Blogger Template


Information: MaxSeo Blogger Template


How to Install Blogger Templates: Click Here
Template name : MaxSeo
Platform: Blogger/Blogspot
Author :  templatesyard

Download: MaxSeo Blogger Template


Demo Click here

Download Click here
Learn more »

Recipee Blogger Template

Recipee Blogger Template is a responsive and one of the best and cleanest designs of can ever have for your food, fashion, magazine and personal Blogs. If your a chef or simply love cooking food and you want top showcase it then this templates allows you to showcase and talk about your latest creations, or the art of food in general. More features for this template below.

Responsive Recipee Blogger Template


Features: Recipee Blogger Template


  • Seo Ready
  • Responsive Design
  • Ads Ready
  • SEO Optimized
  • Ads Ready
  • Well Documentation
  • Related Posts with Thumbnail
  • Social Share Button
  • Full Width Post Layout
  • Multi Dropdown Menu


Screenshot: Recipee Blogger Template


Recipee Blogger Template


Information: Recipee Blogger Template


How to Install Blogger Templates: Click Here
Template name : Recipee
Platform: Blogger/Blogspot
Author :  templatesyard

Download Recipee Blogger Template


Demo Click here

Download Click here
Learn more »

How to Add A Comment Count Bubble to Blogger post title

A comment count bubble displayed the current number of comment/s on each blogger post. You can display this Comment Count Bubble wherever you want on your blog post but for this tutorial we are going to display it on your Blog post title. Best thing about Comment Count Bubble it gives you the idea which among your blog post had the most engagement of visitors.

How to Add A Comment Count Bubble to Blogger post title


How to Add A Comment Count Bubble to Blogger post title?

Let us begin with the tutorial:

Step #1: Log in to your Blogger Account and Go to your Blogger Dashboard.

Step #2: Click Theme --> Edit HTML.

Step #3: Find ]]></b:skin> by Pressing CTRL + F (Windows) or CMD + F (MAC)

Step #4: Now paste the below code above/before ]]></b:skin> tag.

     .comment-bubble {
    float : right;
    width : 48px;
    height : 48px;
    background : url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaLKZZ6nWYJKMjCKSHyABXxzgjPQ8QhxS_aGpauj6MvlqFIVLAJiaDDPN96BFXBPh0ZFXk7QA_Hx6H0sOppuL9ALTn_5xLUHD4OqgYHbJRKslonujIEfKGNIWNp6rEaBC9CJt09zAi78XB/s1600/comment+bubble2.png);
    background-repeat: no-repeat;
    font-size : 18px;
    margin-top : -15px;
    margin-right : 2px;
    text-align : center;
    }

Step #5: Now find this code:

<b:if cond='data:post.title'>
<h3 class='post-title entry-title'>

or (If you can't find the code above)


<b:if cond='data:post.title'>
<h3 class='post-title entry-title' itemprop='name'>

Step #6: Add the below code immediately after it:

<b:if cond='data:post.allowComments'>
<a class='comment-bubble' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' style='color: #000000; font-size: 18px; font-weight: bold;'><data:post.numComments/></a>
</b:if>

Note: Change font color mark in red: color: #000000;
        Change font size mark in red: font-size: 18px;

Step #7: Save your template and Preview the result.

Conclusion

Congrats !! You have made it. Now you have learned How to Add A Comment Count Bubble to Blogger post title. Hope you liked this tutorial, if you enjoyed then please share it with your friends, please stay tuned with Us for more such awesome tutorials. Happy Blogging!
Learn more »