Fandom

Wikia Developers Wiki

YouTubeButton

915pages on
this wiki
Add New Page
Talk0 Share

YouTubeButton imports the platform.js script from Google, which enables the use of YouTube subscribe buttons.

Usage

dev:YouTubeButton/code.js
  • To embed a subscribe button, use the following HTML:
<div class="g-ytsubscribe" data-channel="ChannelName" data-layout="default" data-count="default"></div>
  • Replace ChannelName with a YouTuber's channel name

Example

Code
<div class="g-ytsubscribe" data-channel="wikia" data-layout="default" data-count="default"></div>


Code
<div class="g-ytsubscribe" data-channel="wikia" data-layout="full" data-count="default"></div>

External links

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.