Created
March 8, 2016 22:56
-
-
Save kraftbj/97787c2b7b3a09bbc14b to your computer and use it in GitHub Desktop.
Add extra social media sites to Social Media Widget
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
<?php // Do not include in an existing file. | |
add_filter( 'jetpack_social_media_icons_widget_array', 'bk_social_media'); | |
function bk_social_media( $html ){ | |
$html[] = '<a title="View my Tumblr" href="https://example.tumblr.com" class="genericon genericon-tumblr" target="_blank"><span class="screen-reader-text">View my Tumblr</span></a>'; | |
$html[] = '<a title="View my Flickr" href="https://flickr.com" class="genericon genericon-flickr" target="_blank"><span class="screen-reader-text">View my Flickr</span></a>'; | |
return $html; | |
} | |
// The `genericon-tumblr` class name should be replaced with the proper one from http://genericons.com/ for the icon desired. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment