"Twitter Profile Card"
Bootstrap 4.1.1 Snippet by alexdev

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="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h1>Twitter Profile Card</h1>
<p>You can use with Twitter API, bot or manual.</p>
<!-- code start -->
<div class="twPc-div">
<a class="twPc-bg twPc-block"></a>
<div>
<div class="twPc-button">
<!-- Twitter Button | you can get from: https://about.twitter.com/tr/resources/buttons#follow -->
<a href="https://twitter.com/mertskaplan" class="twitter-follow-button" data-show-count="false" data-size="large" data-show-screen-name="false" data-dnt="true">Follow @mertskaplan</a>
<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>
<!-- Twitter Button -->
</div>
<a title="Mert S. Kaplan" href="https://twitter.com/mertskaplan" class="twPc-avatarLink">
<img alt="Mert S. Kaplan" src="https://mertskaplan.com/wp-content/plugins/msk-twprofilecard/img/mertskaplan.jpg" class="twPc-avatarImg">
</a>
<div class="twPc-divUser">
<div class="twPc-divName">
<a href="https://twitter.com/mertskaplan">Mert S. Kaplan</a>
</div>
<span>
<a href="https://twitter.com/mertskaplan">@<span>mertskaplan</span></a>
</span>
</div>
<div class="twPc-divStats">
<ul class="twPc-Arrange">
<li class="twPc-ArrangeSizeFit">
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
.twPc-div {
background: #fff none repeat scroll 0 0;
border: 1px solid #e1e8ed;
border-radius: 6px;
height: 200px;
max-width: 340px; // orginal twitter width: 290px;
}
.twPc-bg {
background-image: url("https://pbs.twimg.com/profile_banners/50988711/1384539792/600x200");
background-position: 0 50%;
background-size: 100% auto;
border-bottom: 1px solid #e1e8ed;
border-radius: 4px 4px 0 0;
height: 95px;
width: 100%;
}
.twPc-block {
display: block !important;
}
.twPc-button {
margin: -35px -10px 0;
text-align: right;
width: 100%;
}
.twPc-avatarLink {
background-color: #fff;
border-radius: 6px;
display: inline-block !important;
float: left;
margin: -30px 5px 0 8px;
max-width: 100%;
padding: 1px;
vertical-align: bottom;
}
.twPc-avatarImg {
border: 2px solid #fff;
border-radius: 7px;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: