Add a Facebook Like Button to Sticky Share Bar
Copy the code below in your theme´s functions.php to create a Facebook like button beside the share buttons when you are using the Sticky Sharebar Add-On:
/* Add Facebook Like Button in Mashshare Sharebar Add-On
*
*/
function FBLikeMashsbSharebar($output,$sharebuttons, $largelogo, $smallogo){
$output = '
<header id="mashbar-header">
<div class="mashbar-inner">
<div class="mashbar-logo">
<a href="/"> <span class="desktop">'.$largelogo.'</span> <span class="mobile">'.$smallogo.'</span> <span><iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fmashshare.net&width=100&layout=standard&action=like&show_faces=false&share=false&height=35&appId=449277011881884" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:25px;" allowtransparency="true"></iframe></span> </a>
</div>' . $sharebuttons . '
</div>
</header>';
return $output;
}
add_filter('mashbarSharebarFilter', 'FBLikeMashsbSharebar', 10, 4);
Make sure to change the href attribute to URL of your Facebook fan page and the appID, must be created as described here: http://docs.mashshare.net/article/93-like-button-not-visible-facebook-app-id-not-working