How to put a subscribe button on YouTube video?

Adding a Subscribe Button to Your YouTube Video

Step 1: Setting Up Your Channel

Before you can add a subscribe button to your YouTube video, you need to set up your channel. Here are the steps to follow:

  • Go to your YouTube account and click on your profile picture in the top right corner.
  • Click on "Settings" from the dropdown menu.
  • Scroll down to the "Channel" section and click on "Channel settings".
  • Click on "Subscribe button" and select "Customize subscribe button".
  • Choose the type of subscribe button you want to use (e.g. "Custom HTML" or "Custom CSS").
  • Click on "Save changes".

Step 2: Creating a Custom HTML Code

To add a subscribe button to your YouTube video, you need to create a custom HTML code. Here’s how to do it:

  • Go to your YouTube account and click on your profile picture in the top right corner.
  • Click on "Settings" from the dropdown menu.
  • Scroll down to the "Channel" section and click on "Channel settings".
  • Click on "Subscribe button" and select "Customize subscribe button".
  • Click on "Edit HTML" to edit the HTML code.
  • Add the following code to the HTML code:
    <a href="https://www.youtube.com/subscribe" target="_blank" rel="noopener noreferrer">
    <span class="subscribe-button">Subscribe</span>
    </a>
  • Replace "https://www.youtube.com/subscribe" with the URL of your YouTube channel.
  • Replace "target="_blank" with "target="_blank" to open the subscribe button in a new tab.
  • Replace "rel="noopener noreferrer" with "rel="noopener noreferrer" to prevent the browser from blocking the script.

Step 3: Creating a Custom CSS Code

To add a subscribe button to your YouTube video, you need to create a custom CSS code. Here’s how to do it:

  • Go to your YouTube account and click on your profile picture in the top right corner.
  • Click on "Settings" from the dropdown menu.
  • Scroll down to the "Channel" section and click on "Channel settings".
  • Click on "Subscribe button" and select "Customize subscribe button".
  • Click on "Edit CSS" to edit the CSS code.
  • Add the following code to the CSS code:

    .subscribe-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    }

.subscribe-button:hover {
background-color: #555;
}

* Replace the code with the CSS code you want to use.
* Add the following code to the CSS code to make the subscribe button appear on the YouTube video:
```css
.subscribe-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
font-weight: bold;
color: #fff;
background-color: #333;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
z-index: 1;
}

  • Add the following code to the CSS code to make the subscribe button appear on the YouTube video:
    .subscribe-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    }
  • Add the following code to the CSS code to make the subscribe button appear on the YouTube video:
    .subscribe-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    }
  • Add the following code to the CSS code to make the subscribe button appear on the YouTube video:
    .subscribe-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    }
  • Add the following code to the CSS code to make the subscribe button appear on the YouTube video:
    .subscribe-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    }
  • Add the following code to the CSS code to make the subscribe button appear on the YouTube video:
    .subscribe-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    }
  • Add the following code to the CSS code to make the subscribe button appear on the YouTube video:
    .subscribe-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    }
  • Add the following code to the CSS code to make the subscribe button appear on the YouTube video:
    .subscribe-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    }
  • Add the following code to the CSS code to make the subscribe button appear on the YouTube video:
    .subscribe-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    }
  • Add

Unlock the Future: Watch Our Essential Tech Videos!


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top