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="//" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:25px;" allowtransparency="true"></iframe></span> </a>
   </div>' . $sharebuttons . '
 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:

Still need help? Contact Us Contact Us