Skip to content

Instantly share code, notes, and snippets.

@atestu
Created February 13, 2013 15:28
Show Gist options
  • Save atestu/4945393 to your computer and use it in GitHub Desktop.
Save atestu/4945393 to your computer and use it in GitHub Desktop.
Social sharing buttons (vertical)
<div class="social-sharing">
<div class="fb-like" data-href="__YOUR_URL__" data-send="false" data-layout="box_count" data-width="55" data-show-faces="true"></div>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="__YOUR_URL__" data-text="__YOUR_TWEET__" data-related="__YOUR_TWITTER_ACCOUNT__" data-count="vertical">Tweet</a>
<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/Share" data-url="__YOUR_URL__" data-counter="top"></script>
</div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=__YOUR_FACEBOOK_APP_ID__";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
.social-sharing {
text-align: center;
> * {
vertical-align: top;
margin-left: 15px;
&:first-child {
margin-left: 0;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment