.share-box-post{margin:20px 0 25px;border-bottom:3px solid #EEE;position:relative;overflow:hidden;}
.share-title-post{float:left;color:#010101;display:inline-block;padding-bottom:10px;font-size:13px;font-weight:700;position:relative;top:5px;text-transform:uppercase}
.share-art-post{float:left;padding:0;padding-top:0;font-size:13px;font-weight:400;text-transform:capitalize}
.share-art-post a{color:#fff;padding:3px 8px;margin-left:4px;border-radius:2px;display:inline-block;margin-right:0}
.share-art-post a:hover{color:#fff}
.share-art-post .wat-art{background:#25d266}
.share-art-post .wat-art:hover{background:rgba(37, 210, 102, 0.73)}
Also Check :- How To Add Social Sharing Widget With Whatsapp Sharing Button In Blogger
Start Step-1 ( Adding CSS )
/* ######## Whatsapp Sharing Widget By Sorabloggingtips.com ######################### */
.share-box {
position: relative;
padding: 10px;
}
.share-title {
border-bottom: 2px solid #777;
color: #010101;
display: inline-block;
padding-bottom: 7px;
font-size: 15px;
font-weight: 500;
position: relative;
top: 2px;
float:left;
}
.share-art {
float: left;
padding: 0;
padding-top: 0;
font-size: 13px;
font-weight: 400;
text-transform: capitalize;
}
.share-art a {
color: #fff;
padding: 3px 8px;
margin-left: 4px;
border-radius: 2px;
display: inline-block;
margin-right: 0;
background: #010101;
}
.share-art a:hover{color:#fff}
.share-art .wat-art{background:#25d266;display:none;}
.share-art .wat-art.whatsapp-desktop{background:#25d266;display:inline-block;}
.share-art .wat-art:hover{background:rgba(37, 210, 102, 0.73)}
@media only screen and (max-width: 768px) {
.share-art .wat-art{display:inline-block;}
.share-art .wat-art.whatsapp-desktop{display:none;}
}
Step-2 ( Adding HTML )
<b:if cond='data:blog.pageType == "item"'>
<div class='share-box'> <h8 class='share-title'>Share This:</h8> <div class='share-art'> <whatsapp expr:href='data:post.url' expr:src='data:post.firstImageUrl' expr:text='data:post.title'/>
<a class='wat-art whatsapp-desktop' expr:href='"https://web.whatsapp.com/send?text=" + data:post.title + " | " + data:post.url' rel='nofollow' target='_blank'><i class='fa fa-whatsapp'/><span class='resp_del5'> Whatsapp</span></a>
<a class='wat-art' expr:href='"https://api.whatsapp.com/send?text=" + data:post.title + " | " + data:post.url' rel='nofollow' target='_blank'><i class='fa fa-whatsapp'/><span class='resp_del5'> Whatsapp</span></a> </div> </div> <div style='clear:both'/> </b:if>
Step-3 ( Adding Fontawesome )
In the template, search for the </head> tag and just above it paste the following HTML Coding.
<link href=’https://ift.tt/34vxRXB; rel=’stylesheet’/>
No comments:
Post a Comment