How to Add a YouTube Subscription Button to WordPress (In 2 Steps)

Last Updated on March 23, 2023 by 13 Comments

How to Add a YouTube Subscription Button to WordPress (In 2 Steps)
Blog / Tips & Tricks / How to Add a YouTube Subscription Button to WordPress (In 2 Steps)
Play Button

If you have both a WordPress site and a YouTube channel, you might want to integrate these platforms. One way is by simply embedding videos on WordPress or using a YouTube plugin, but you can also use a YouTube subscribe button to get more subscriptions for your channel.

In this article, we’re going to start by talking about why you should add a YouTube Subscribe button to WordPress. We’ll then show you how to do it in two steps. Let’s get to work on getting your channel more views!

Subscribe To Our Youtube Channel

Why You Should Add a YouTube Subscribe Button to Your Site

You’ve most likely seen YouTube Subscribe buttons before. They’re simple elements that you can click to subscribe to a YouTube channel from a third-party website. The actual YouTube Subscribe buttons are generally fairly basic in their appearance:

Some simple examples of YouTube Subscribe buttons.

However, that simple style can play to your advantage since it means they fit in with almost any site design. Meanwhile, the recognizable red color will ensure they still stand out, just like a Call To Action (CTA). That’s good news since it means you can add a YouTube Subscribe button right alongside your other social media icons on your website.

Using a YouTube subscribe button on your site is a smart way of increasing the number of subscribers without taking people off your site. This is particularly good if you already embed videos on your site. It also makes it easy to promote your channel on a medium besides YouTube itself.

If you have a YouTube channel, you can a subscription button to your site using a widget, on your main menu, or pretty much anywhere else you want. Let’s talk about how to do that.

How to Add a YouTube Subscribe button to WordPress (In 2 Steps)

For this process, we’re going to generate a YouTube Subscribe button manually and then embed it into a website. Before you proceed, you should naturally have a YouTube account ready as well as your channel’s ID.

Step #1: Configure a YouTube Subscription Button

If you’re not yet familiar with the Google Developers site, then it’s time for that to change. Google Developers is where the search giant shares tools for web developers. Here, you can find information about upcoming tech events, news, and a collection of tools to help you build and monetize web apps:

The Google Developers website.

The tool we’re using today is the one that lets us create our YouTube subscription button. To find it, you can go to the Product Index page on the Google Developer site and find the YouTube Subscribe Button option:

Find the YouTube subscription button option.

Click on that link now and look for the Configure a Button option on the left of the next screen. Now, you’ll see a form where you can configure your button. Start by entering the ID or name for your channel:

Configuring a new button.

After this, the remaining options enable you to customize the button’s appearance. You can select a layout, a theme, and choose whether to show or hide your subscription count.

Let’s check out some of these other styles of buttons you can generate. In the last example, you saw the small default layout. Here’s the full alternative, which can be a bit big for a navigation menu, but may be perfect for a sidebar:

A full YouTube subscribe button.

There’s also a dark theme you can use, but it only shows if you’re trying out the full layout:

A subscribe button with a dark layout.

That option could be a good fit for a dark footer area. As always, the choice of how to style the element is up to you! It’s also worth remembering that you can generate multiple buttons for different areas of your site.

When you’ve settled on a style, you can select whether or not to show your Subscriber count. Generally speaking, there’s no right or wrong selection here. For instance, you might want to hide your subscription count if it’s still low, or if you want the button to be cleaner. However, if you already have a lot of subscribers, showing this off can be a subtle selling point in itself.

Finally, when you’re happy with your settings, look down to the Code section. Within, you’ll find the snippet you need to add to your site to display the YouTube Subscribe button:

The code you need to display a YouTube subscribe button.

Next up, we’ll check out how to add that code to your website!

Step #2: Add Your Embed Code to WordPress Using a Widget

One way you can use this code snippet on your site is by going to the Appearance > Widgets tab on your WordPress dashboard. Here, you can look for the Custom HTML widget and move it to wherever you want to display your YouTube Subscribe button:

A custom HTML widget.

Paste the code you copied earlier into the Content section of your brand new widget and that’s it. Here’s an example of what your button will look like:

A simple subscribe button.

More Options for Divi Users

There are more options at your disposal when adding a YouTube Subscribe button to your website if you’re a Divi user. Options that gives you greater control over its placement. We’re talking, of course, about Divi’s Code module.

The Divi Code module.

Simply place the code module where you want to show your button and paste the code you got from the Google Developers site within its Content field:

Adding your subscription button code to the Divi Code module.

Save the changes to your page and you’re good to go. Your YouTube Subscribe button should show up on your front end where you specified. Which approach to use is up to you.


Ideally, your WordPress website and YouTube channel should drive traffic to each other using social media icons and links. However, you can always take this further by adding a YouTube Subscribe button on your site. This way, visitors will have an easier time subscribing to your channel, which will benefit both of you.

All it takes to add a YouTube subscription button to your website are two steps:

  1. Configure your YouTube Subscribe button using the Google Developers platform.
  2. Add your embed code to WordPress using either a widget or the Divi Code module.

Do you have any questions about how to integrate WordPress with YouTube? Let’s talk about them in the comments section below!

Article thumbnail image by Mar1kOFF /


Want To Build Better WordPress Websites? Start Here! 👇

Take the first step towards a better website.

Get Started
Premade Layouts

Check Out These Related Posts

Splice Video Editor: An Overview and Review

Splice Video Editor: An Overview and Review

Updated on March 10, 2023 in Tips & Tricks

Video is a valuable form of content for social media. Unfortunately, creating quality videos is usually a long process that involves moving mobile footage to a desktop app for editing. However, mobile editing is on the rise. Apps such as Splice Video Editor make it possible to efficiently create...

View Full Post
How to Use Font Awesome On Your WordPress Website

How to Use Font Awesome On Your WordPress Website

Updated on September 16, 2022 in Tips & Tricks

When given the choice between using a vector icon or a static image, it’s a good idea to go with the vector. They’re small and fast to load, and they can scale to any size without a loss of resolution. Font Awesome is a superb library of vector icons that you can use on your websites,...

View Full Post


  1. Got idea about YouTube subscription button
    Thank you.

    • You’re welcome! 🙂

  2. This should be an option in Monarch!

  3. Has your testing showed any negative effects on website load time? If so, what are your recommendations to remedy this?

    • This isn’t something I noticed when testing. I suspect this can become an issue if you have many similar buttons that require connections to external sites, but I haven’t found the YouTube button specifically to have any noticeable effect.

  4. The problems with those direct buttons is that they are supossed to “get” info for the visitors even before they click them. So they can be a problem with RGPD I guess 🙁
    It would be nice if everyone if everything was easier.

  5. Now is there any actual way of customizing the appearance of the button?

    • I just use a Divi butting with the subscription link as it fits the design of the website then but you don’t get the sub count displayed.

    • Yes, you can pick a theme, layout, and whether or not you want to display the number of existing subscribers. 🙂

  6. Thanks John! This is exactly what I was seeking to get the subscriber count over 100 a get a custom name for the YouTube channel.

    • You’re welcome, Luke!

  7. show!!!!! 🙂

    • Ahhh Piá do vô!

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi