This code works in any WordPress theme and adds your YouTube subscribe button to any nav menu location.
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.
Leave a Reply