Everything you would like to include to make your website more social.
For more information head to The Open Graph protocol.
<meta property="og:type" content="website">
<meta property="og:url" content="...">
<meta property="og:title" content="...">
<meta property="og:description" content="...">
<meta property="og:image" content="...">
-
og:audio
— A URL to an audio file to accompany this object. -
og:determiner
— The word that appears before this object's title in a sentence. An enum of (a, an, the, "", auto). If auto is chosen, the consumer of your data should chose between "a" or "an". Default is "" (blank). -
og:locale
— The locale these tags are marked up in. Of the format language_TERRITORY. Default is en_US. -
og:locale:alternate
— An array of other locales this page is available in. -
og:site_name
— If your object is part of a larger web site, the name which should be displayed for the overall site. e.g., "IMDb". -
og:video
— A URL to a video file that complements this object.
Include this preferably before the </body>
for any Facebook buttons providing your own APP_ID
:
<div id="fb-root"></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/sdk.js#xfbml=1&version=v2.6&appId=<APP_ID>";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
For more information head to Like Button.
<div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="standard" data-action="like" data-show-faces="true"></div>
Additionally you can include data-share="true"
if you want to shares well.
The data-layout
can also be box_count
, button_account
, button
.
For more information head to Follow Button.
<div class="fb-follow" data-href="https://www.facebook.com/lipis" data-layout="standard" data-show-faces="true"></div>
Additionally you can include data-width
and data-height
.
The data-layout
can also be box_count
, button_account
, button
.
For the main favicon itself, it's best for cross-browser compatibility not to use any HTML. Just name the file favicon.ico and place it in the root of your domain.
For more information head to favicon-cheat-sheet.
For more information head to GitHub buttons.
<iframe src="https://ghbtns.com/github-btn.html?user=lipis&repo=social-elements&type=star&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe>
<iframe src="https://ghbtns.com/github-btn.html?user=lipis&repo=social-elements&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
<iframe src="https://ghbtns.com/github-btn.html?user=lipis&repo=social-elements&type=watch&count=true&v=2" frameborder="0" scrolling="0" width="170px" height="20px"></iframe>
<iframe src="https://ghbtns.com/github-btn.html?user=lipis&repo=social-elements&type=watch&count=true&size=large&v=2" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
<iframe src="https://ghbtns.com/github-btn.html?user=lipis&repo=social-elements&type=fork&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe>
<iframe src="https://ghbtns.com/github-btn.html?user=lipis&repo=social-elements&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="158px" height="30px"></iframe>
<iframe src="https://ghbtns.com/github-btn.html?user=lipis&type=follow&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe>
<iframe src="https://ghbtns.com/github-btn.html?user=lipis&type=follow&count=true&size=large" frameborder="0" scrolling="0" width="220px" height="30px"></iframe>
Include this preferably before the </body>
for any Pinterest widgets:
<script type="text/javascript">
(function(d){
var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');
p.type = 'text/javascript';
p.async = true;
p.src = '//assets.pinterest.com/js/pinit.js';
f.parentNode.insertBefore(p, f);
}(document));
</script>
For more information head to Pin it button.
<a href="https://www.pinterest.com/pin/create/button/">
<img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" />
</a>
For more information head to Follow button.
<a href="https://www.pinterest.com/lipis/"
data-pin-do="buttonFollow">
Lipis
</a>
For more information head to Pin widget.
<a href="https://www.pinterest.com/pin/139752394664775546/"
data-pin-do="embedPin">
</a>
For more information head to Board widget.
<a href="https://www.pinterest.com/anapinskywalker/style/"
data-pin-do="embedBoard"
data-pin-board-width="400"
data-pin-scale-height="320"
data-pin-scale-width="100">
</a>
For more information head to Profile widget.
<a href="https://www.pinterest.com/anapinskywalker/"
data-pin-do="embedUser"
data-pin-board-width="400"
data-pin-scale-height="320"
data-pin-scale-width="80">
</a>
For more information head to Twitter buttons.
Include this preferably before the </body>
for any Twitter buttons:
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<a href="https://twitter.com/share" class="twitter-share-button" data-via="Lipis">Tweet</a>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://github.com/lipis/social-elements" data-text="Everything that you need to make your website social friendly" data-via="Lipis" data-size="large" data-hashtags="opengraph">Tweet</a>
<a href="https://twitter.com/Lipis" class="twitter-follow-button" data-show-count="false">Follow @Lipis</a>
<a href="https://twitter.com/Lipis" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @Lipis</a>
<a href="https://twitter.com/intent/tweet?button_hashtag=SocialElements" class="twitter-hashtag-button" data-related="Lipis">Tweet #SocialElements</a>
<a href="https://twitter.com/intent/tweet?button_hashtag=SocialElements&text=Everything%20you%20would%20like%20to%20include%20to%20make%20your%20website%20more%20social" class="twitter-hashtag-button" data-related="Lipis" data-url="https://github.com/lipis/social-elements" data-size="large">Tweet #SocialElements</a>
<a href="https://twitter.com/intent/tweet?screen_name=Lipis" class="twitter-mention-button" data-related="Lipis">Tweet to @Lipis</a>
<a href="https://twitter.com/intent/tweet?screen_name=Lipis&text=Hello%2C%20World!" class="twitter-mention-button" data-size="large" data-related="Lipis">Tweet to @Lipis</a>
For more information head to Getting Started Guide.
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@lipis">
<meta name="twitter:title" content="...">
<meta name="twitter:description" content="...">
<meta name="twitter:image" content="...">
The twitter:card
can be one of the following (follow the links to see more attributes):