How to Add a YouTube Subscribe Widget to your Website

Written by Amit Agarwal on Feb 22, 2013

Do you have a video channel on YouTube? Then you may want to add this simple “Subscribe” button to your website that will help visitors subscribe to your YouTube channel with a click without having to leave your site for YouTube.

For example, here’s a “live” subscription button for my video channel on YouTube:

To embed this button to your own website, just copy-paste the following block of HTML code anywhere in your website. Then replace XYX in the subscription URL with your own YouTube username.

    &lt;iframe src=<span style="color: #006080;">"<span style="color: #f00;">XYZ</span>"</span> 
       style=<span style="color: #006080;">"overflow: hidden; height: 105px; width: 300px; border: 0;"</span> 
       scrolling=<span style="color: #006080;">"no"</span> frameBorder=<span style="color: #006080;">"0"</span>&gt;

Related: YouTube Promotional Banners

One-Click YouTube Subscribe Button

When you create a link from the website to your YouTube channel, there’s a probability that that visitor may fail to notice the “subscribe” button on the already crowded YouTube channel page.

However, if you add “sub_confirmation=1” to the YouTube channel link, the visitor will get a prompt to subscribe to your channel while they are on the YouTube website. Click here for a live example.

Please do note that the Subscribe prompt would not be displayed if the visitor is already subscribed to your YouTube channel or if they are not logged into YouTube.

Subscribe to our Email Newsletter