Skip to content

Instantly share code, notes, and snippets.

@abraham
Created October 10, 2010 03:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abraham/618903 to your computer and use it in GitHub Desktop.
Save abraham/618903 to your computer and use it in GitHub Desktop.
Add social media share links to your Blogger blog
<!-- Place share links here -->
<div class='post-header'>
<!-- Share links -->
<b:if cond='data:blog.pageType == "item"'>
<div class='social-share-links'>
<a class="DiggThisButton DiggCompact"></a><script type="text/javascript">(function() { var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0]; s.type = 'text/javascript'; s.async = true; s.src = 'http://widgets.digg.com/buttons.js'; s1.parentNode.insertBefore(s, s1); })(); </script>
<a title="Post to Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-count"></a><script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script>
<a name="fb_share" type="button_count" class='facebook-share-button' href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<a href="http://twitter.com/share" class="twitter-share-button" data-via="" data-count="horizontal" data-related="abraham:Hacker Advocate looking for awesome people, ideas, and projects.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</div>
</b:if>
<!-- /Share links -->
iframe.twitter-share-button.twitter-count-horizontal { position: relative; top: 7px; }
.facebook-share-button { position: relative; top: 1px; }
.fb_share_count_nub_right { position: relative; top: 8px; }
.db-wrapper { height: 19px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment