Subscribe to youtube button

2

I am making a YouTube video listing page and I would like to make a button for the user to sign up for the channel, but in the examples I found on the internet they come in lots of information beyond what I need, in my case I would like just submit the "sign up" button. Look at the code below:

<iframe src=http://www.youtube.com/subscribe_widget?p=CissaMagazineBR style="overflow: hidden; height: 200px; width: 400px; border: 0;" scrolling="no" frameborder="0"></iframe> 
    
asked by anonymous 10.08.2015 / 15:21

1 answer

1

Google Developers has a page to create this button, just go to Youtube Subscribe Button .

An example button to sign up for the Google Developers channel:

<script src="https://apis.google.com/js/platform.js"></script><divclass="g-ytsubscribe" data-channel="GoogleDevelopers" data-layout="default" data-count="default"></div>

The data-channel="GoogleDevelopers" attribute is the ID or Channel Name.

    
10.08.2015 / 15:48