How to Add a YouTube Subscribe Button to One of Your Webpages

Get HubSpot's WordPress Plugin
Jamie Juviler
Jamie Juviler

Published:

YouTube is the second-largest search engine on the web. Every day, millions of viewers flock to the video-sharing platform for the latest news, vlogs, music, and tutorials.

youtube vlogger recording a YouTube video for her subscribers

If you have a YouTube channel, growing your audience is important. The good news is that you can promote your channel right from your WordPress website or HubSpot website — your visitors can subscribe without needing to leave the page.

In this post, I’ll cover how to add a YouTube subscribe button to posts in WordPress or HubSpot. This tiny red button can have a huge impact on your subscriber number and customer engagement.

Grow Your Business With HubSpot's Tools for WordPress Websites

Here's what the YouTube subscribe button looks like for HubSpot's YouTube page:

YouTube Subscribe Button

When embedded, this button provides readers a direct path to subscribing to our YouTube page. But that's not the only benefit it provides. Read on for a few more benefits of using this feature. 

Benefits of Adding a YouTube Subscribe Button

There are a handful of benefits from embedding the subscribe button on your website, including:

  • increasing your YouTube following, which can lead to more exposure and sales.
  • leveraging your existing audience. They already know your content and are more likely to follow you on another medium.
  • eliminating the extra step of sending visitors to your YouTube page. They can subscribe with just a click and continue engaging with your website.

Conditions of Use for YouTube Subscribe Button

Using the YouTube subscribe button comes with a few requirements. You must agree to follow the YouTube API Terms of Service and all other relevant API documentation. The most important rules are:

  • The button must be fully and clearly visible.
  • You may not offer or promote prizes or rewards to your visitors for clicking on the button.
  • You may not use the button to track any user data, including the user's actions or browsing activity.

How to Add a YouTube Subscribe Button in WordPress

You don't need to be a tech wizard to add a subscribe button. Google makes the process easy.

There are two ways to add a YouTube subscribe button to your WordPress site, via the custom HTML widget or by using a WordPress plugin. Let’s start with the custom HTML method.

To add the subscribe button with HTML:

  1. Navigate to the Google documentation page.
  2. Under Options, fill in your channel name or ID and select your display settings. The page provides a preview below of how the button will appear on your site.
  3. Copy the code from the Code field.
  4. Log into your WordPress account.
  5. From the WordPress dashboard, select Appearance > Widgets.
  6. Find the Custom HTML widget under Available Widgets, and drag and drop this widget to your desired page area.
  7. In the Custom HTML window, add a title for your subscribe button widget and paste the code in the Content field.

    the Custom HTML widget window in WordPress for adding a YouTube subscribe button
  8. Click Save, then click Done.
  9. Preview your website pages to see how your new button looks.

You also can use a plugin to add your subscription button. We recommend the Easy Subscribe Button Widget because it’s easy to set up.

To add a YouTube subscribe button using a plugin:

  1. Install and activate Easy Subscribe Button Widget under Plugins > Add New.
  2. Select Appearance > Widgets.
  3. Under Available Widgets, you will see the new YouTube Subs widget. Drag and drop this widget into your desired area.
  4. In the YouTube Subs window, fill in the title, channel name or ID, and settings for your button display.

    the YouTube Subs WordPress widget options window for adding a YouTube subscribe button to a webpage
  5. Click Save, then click Done.
  6. Preview your website pages to see how your new button looks.

How to Add a YouTube Subscribe Button in HubSpot

There are two ways to embed a YouTube subscribe button on your website built with HubSpot, by embedding it within the content of a page or blog post, or creating a module for the button.

To add a YouTube Subscribe Button to a page in Content Hub:

  1. Navigate to the Google documentation page.
  2. Under Options, fill in your channel name or ID and select your display settings. The page provides a preview below of how the button will appear on your site.
  3. Copy the code from the Code field.

To place the button within the content of a page or blog post:

  1. In the content editor of the page, locate and select a rich text module.
  2. Place your cursor at the location where you want to place the button.
  3. In the top right, click the Insert dropdown menu and select Embed.
  4. In the Insert Embed window, paste the Google HTML code into the Embed code field and click Insert.
     
    the Insert Embed window in CMS Hub
  5. Select Preview in the top right to see how the button appears on the page.

Here it is in action. Subscribe to HubSpot’s YouTube channel:

 
 
You can also embed a subscribe button on your pages with modules. To do this:
  1. In your HubSpot account, navigate to Marketing > Files and Templates > Design Tools.
  2. At the top of the finder on the left side, click the File dropdown menu and select New file.
  3. In the New file window, choose Module.
  4. Set your preferences in the Set up your new module window.
    • Choose whether to enable this module on pages, blog posts, and/or emails.
    • Under Module content scope, select Local module or Global module. If your module is set to global, editing its content will update every location where the module is used.
    • Name your module and change its location (if desired).

      the new module setup window in CMS Hub
  5. Click Create.
  6. Paste the Google HTML code in the HTML + HubL editor.

    the HTML editor window in CMS Hub
  7. Click Publish changes in the top right.
  8. To add this new module to a template, open the template layout editor for an existing template (or create a new template).
  9. Click the Add tab at top of the layout inspector, then search for your module.
  10. Drag and drop the module into your template.

    gif of user dragging and dropping the YouTube subscribe button module into a template in CMS Hub
  11. Click Publish changes in the top right to save the template.

Learn more about how to use HubSpot’s powerful module tool on our module knowledge base article.

Don’t wait to build your YouTube audience, especially when you can drive traffic directly from your website. Encourage website visitors to follow your channel by adding a YouTube subscribe button to your WordPress posts, and watch your channel grow.

Use HubSpot tools on your WordPress website and connect the two platforms  without dealing with code. Click here to learn more.

Related Articles

Capture, organize, and engage web visitors with free forms, live chat, CRM, analytics, and more.

DOWNLOAD THE FREE PLUGIN

CMS Hub is flexible for marketers, powerful for developers, and gives customers a personalized, secure experience

START FREE OR GET A DEMO