Add YouTube Subcribe Button to Nav Menu Using PHP Code

This code works in any WordPress theme and adds your YouTube subscribe button to any nav menu location.

youtube-subscribe-button

You can change the menu location simply by changing primary in the code to secondary or any other menu location your theme includes.

You can also add conditional tags to the code so your YouTube button only displays based on specific conditions.

The code also includes a custoim class so you can position the subscribe button anywhere in your menu.

Related Tutorials

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.