All You Need To Know About Earning First $100 from Google Adsense Visit Post

How To Add Custom Social Share Button To Blogger(Blogspot) Mobile Version

Posted By : Satyendra Maurya | Last Update : 4:51 PM | Category : |

This is a tutorial post about how you can add a better sharing button than default Blogger's share in mobile version of Blog. One benefit of using custom share button on your mobile version of blog is that it looks beautiful and it will increase your blog respect on other users because they might haven't seen mobile share button on any other blogspot blog.
Here is a snapshot of the buttons :


So Here are the steps to be followed:

There are two main steps 1st is to add css and 2nd step to add the code.

1: Adding CSS Code

Open your blogger dashboard and move to Template>Edit HTML>1 click anywhere in template
Press ctrl+f to open search box and search for following code: ]]></b:skin>  and paste the below code above the ]]></b:skin>

#share-this{overflow:hidden;margin:20px auto 0 auto;line-height:1.4em;display:table;text-align:center}
#share-this h4{position:relative;overflow:hidden;margin:0 0 10px;letter-spacing:1px;font-size:120%;font-weight:700;padding:0 8px;text-align:center;transition:all 0.5s ease-out}
#share-this h4:before,#share-this h4:after{position:absolute;top:51%;overflow:hidden;width:50%;height:1px;content:&#39;\a0&#39;;background-color:#ddd}#share-this h4:before{margin-left:-50%;text-align:right;}#share-this span{position:relative;display:inline-block;padding:0 10px;margin:auto;}
#share-this a{float:left;display:block;color:#fff;padding:10px 14px;text-align:center;margin:0 3px 3px;font-size:12px}#share-this a.this-fb{background:#395796;}#share-this a.this-tw{background:#4cb0ea;}#share-this a.this-gp{background:#de3425;text-align:center;overflow:hidden}#share-this a.this-gp i{text-align:center;padding:0}#share-this a.this-fb:hover,#share-this a.this-tw:hover,#share-this a.this-gp:hover {opacity:.9}#share-this i{display:inline-block;margin:-3px 10px 0 0}
.this-fb i,.this-tw i,.this-gp i{background:url(http://1.bp.blogspot.com/-P3DOmXqEiCM/VkOW8tkzxGI/AAAAAAAAMpE/cBX9b0xTPU8/s1600/sosmed2.png) no-repeat;width:22px; height:18px; display:inline-block;vertical-align:text-top;margin-top:-6px;text-align:center}
.this-fb i{background-position:0 -100px;margin-top:-4px}.this-tw i{background-position:0 -150px}.this-gp i{background-position:0 -200px}.notpay {font-size:13px;line-height: 22px;border:2px #df3f2a solid;padding:3px 15px;text-align:center;margin:0 0 25px;}.pay {font-size:13px;line-height: 22px;border:2px #5973b0 solid;padding:3px 15px;text-align:center;margin:0 0 25px;}

2: Adding the main Code 


Search again for this code <span class='post-comment-link'> and go to end of this div tag and paste below code. for example see above picture.

<b:if cond='data:blog.pageType == &quot;item&quot;'><div class='shr-btn-scl'>
<div align='center'>
<div id='share-this'>
<h4><span>Share this Post Via:</span></h4>
<a class='this-fb' expr:href='&quot;http://www.facebook.com/sharer.php?u=&quot; + data:blog.url' onclick='window.open(this.href,&quot;popupwindow&quot;,&quot;status=0,height=500,width=500,resizable=0,top=50,left=100&quot;);return false;' rel='nofollow' target='_blank' title='Facebook'><i class='fb-1'/>Share on Facebook</a><a class='this-tw' expr:href='&quot;http://www.blogger.com/share-post.g?blogID=&quot; + data:blog.blogId + &quot;&amp;amp;postID=&quot;+ data:post.id + &quot;&amp;amp;target=twitter&quot;' onclick='window.open(this.href,&quot;popupwindow&quot;,&quot;status=0,height=500,width=500,resizable=0,top=50,left=100&quot;);return false;' rel='nofollow' target='_blank' title='Twitter'><i class='tw-2'/>Tweet on Twitter</a><a class='this-gp' expr:href='&quot;https://plus.google.com/share?url=&quot; + data:blog.url' onclick='window.open(this.href,&quot;popupwindow&quot;,&quot;status=0,height=500,width=500,resizable=0,top=50,left=100&quot;);return false;' rel='nofollow' target='_blank' title='Google+'><i class='gp-2'/><span class='gp-del'>Plus on Google+</span></a></div></div></div>  </b:if>
Now You are done!!! Enjoy blogging if there is any problem then you can ask in comments. 

14 comments:

  1. tank you for this code http://www.ajakiz.com/

    ReplyDelete
    Replies
    1. Welcome Raaxada For Using Techno Geek Zone.

      Delete
  2. Satyendra bhai how to show whatsapp button plz share html

    ReplyDelete
    Replies
    1. @Dinesh I tried my best efforts to implement the code for whatsapp button but failed to do so...However there are many third party apps which provides whatsapp button for mobile blogs such as addthis.

      Delete
  3. I tried.But didnt work.I couldnt see the sharing buttons in mobile version.PS-the buttons are available in desktop version.

    ReplyDelete
  4. Excellent! Thank you! It's working in my site mobile view. Keep it up!

    ReplyDelete
  5. Than you a lot this post has really helped me. i blog at wizprof.com

    ReplyDelete
  6. Excellent post
    https://videographybloginfo.wordpress.com/

    ReplyDelete
  7. Innovative idea.
    https://mdasdrne7.wixsite.com/mysite

    ReplyDelete
  8. It works perfect. Thank you so much! Do you know how to show Like button after each post on the mobile view? The iFrame code generated from https://developers.facebook.com/ only works on desktop view.

    ReplyDelete
  9. This codes actually works. Thanks for the awesome post.

    http://basketballhooplab.com/

    ReplyDelete

Although every comment is appreciated, Keep in mind that any link or keyword in the comments may be the reason for deletion of your comment. Thanks for understanding!

#Techno Geek Network

#Proudly Hosted on Blogger


DMCA.com Protection Status

©2014-2016 Techno Geek Network | Technology and Science is What You Make It! | Designed by Satyendra