Adding ?sub_confirmation=1 to the end of any YouTube link will auto-open the subscription popup.
Created
January 17, 2019 14:22
-
-
Save jonbrockett/7c83d531f3134ef9169feed19c8b5c16 to your computer and use it in GitHub Desktop.
YouTube Link Auto Open Subscribe Popup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="<?php echo $youtube_url; ?>?sub_confirmation=1" target="_blank"> | |
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="18" viewBox="0 0 159 110"> | |
<title>YouTube Icon</title> | |
<g fill-rule="evenodd"> | |
<path d="M155.678229,17.1754136 C159,29.4315549 159,54.9993532 159,54.9993532 C159,54.9993532 159,80.5684451 155.678229,92.8232928 C153.849816,99.58325 148.462736,104.909982 141.621563,106.715742 C129.221856,110 79.5,110 79.5,110 C79.5,110 29.7794524,110 17.3797455,106.715742 C10.538573,104.909982 5.1514932,99.58325 3.32307958,92.8232928 C0,80.5684451 0,54.9993532 0,54.9993532 C0,54.9993532 0,29.4315549 3.32307958,17.1754136 C5.1514932,10.4154564 10.538573,5.09001752 17.3797455,3.28296429 C29.7794524,0 79.5,0 79.5,0 C79.5,0 129.221856,0 141.621563,3.28296429 C148.462736,5.09001752 153.849816,10.4154564 155.678229,17.1754136 Z M64,78 L105,54.5012896 L64,31 L64,78 Z"/> | |
</g> | |
</svg> | |
</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment