How to add a YouTube Subscribe button to your website or blog
If you want to add a YouTube Subscribe button directly on to your website or blog so that visitors can just click it and immediately subscribe to your videos without even having to go to your YouTube Channel, then this guide is for you.
To show what we mean, below is a demo button linked to our own YouTube Channel:
So how do you do it? all you need is a simple piece of code to add to your website and also you need to know your unique channel ID. We will start with the code and explain what parts you will need to change to point your new subscribe button to your own YouTube Channel.
<script src="https://apis.google.com/js/platform.js"></script> <br /> <div class="g-ytsubscribe" data-channelid="UCtEuFj1SMLiuRoucD1hv8dA" data-count="default" data-layout="full"> <br /> </div> <br />
From this you can see that the part of the code that you need to edit is the data-channelid=”xxx” part.
Identifying your own YouTube Channel ID
To make the code work you will need to replace the data-channelid from what ours is in the sample code to your own – but how? the answer is very simple.
Go to your own YouTube channel and take a look in your web browsers address bar, you should see something similar to this:
The seemingly jumbled up numbers and letters after the channel/ are your YouTube Channel unique ID. Once you have found this, you can copy it and then use this ID to replace our ID in the sample code above.
Then, all you need to do is place this code into your website or blog where you want your subscribe button and it will then appear.
If you have any questions or comments on this post, then please feel free to leave your messages below using our Disqus system.