"Share on social networks "
Bootstrap 3.1.0 Snippet by joao12ferreira

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<div class="container">
<div class="row mobile-social-share">
<div class="col-md-9">
<h3>Share this content</h3>
</div>
<div id="socialHolder" class="col-md-3">
<div id="socialShare" class="btn-group share-group">
<a data-toggle="dropdown" class="btn btn-info">
<i class="fa fa-share-alt fa-inverse"></i>
</a>
<button href="#" data-toggle="dropdown" class="btn btn-info dropdown-toggle share">
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li>
<a data-original-title="Twitter" rel="tooltip" href="#" class="btn btn-twitter" data-placement="left">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a data-original-title="Facebook" rel="tooltip" href="#" class="btn btn-facebook" data-placement="left">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a data-original-title="Google+" rel="tooltip" href="#" class="btn btn-google" data-placement="left">
<i class="fa fa-google-plus"></i>
</a>
</li>
<li>
<a data-original-title="LinkedIn" rel="tooltip" href="#" class="btn btn-linkedin" data-placement="left">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.mobile-social-share {
background: none repeat scroll 0 0 #EEEEEE;
display: block !important;
min-height: 70px !important;
margin: 50px 0;
}
body {
color: #777777;
font-family: "Lato","Helvetica Neue","Arial","Helvetica",sans-serif;
font-size: 13px;
line-height: 19.5px;
}
.mobile-social-share h3 {
color: inherit;
float: left;
font-size: 15px;
line-height: 20px;
margin: 25px 25px 0 25px;
}
.share-group {
float: right;
margin: 18px 25px 0 0;
}
.btn-group {
display: inline-block;
font-size: 0;
position: relative;
vertical-align: middle;
white-space: nowrap;
}
.mobile-social-share ul {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Thanks

adiluay () - 6 years ago - Reply 0


Hello everybody, thankx for this code it's good, but I don't want to make a dropdown menu. When I click in share button I want that the differents buttons open in the left side. Thanks for helping

agata () - 9 years ago - Reply 0


It breaks for most themes except the default.

Bob () - 10 years ago - Reply 0


I can't get the drop down to work and there is also and extra closing div tag in the source at the end.

Ken () - 10 years ago - Reply 0


You need to make sure and reference the jquery and bootstrap js files. Links are not included in the sample html.

Bob () - 10 years ago - Reply 0