The Ultimate Guide To Blogger Blogs

Add Social Media Buttons In Blogger Blogs

add social media buttons in blogger

It is very important to reach out to your audience in every way possible to attract good traffic to your blog. There are many ways to reach out to your audience and one among them is to make your audience share your posts as soon as they have finished reading your article. So adding social media buttons at the end of every post is quite beneficial to reach your audience. Follow the steps below to add cool social media buttons at the end of every post in your blogger blogs.

NOTE: Before doing any changes to your code, It is recommended that you back up the whole Template just in case anything goes wrong.

Adding Social Media Buttons


  • In your Blogger dashboard Goto Template-->Edit HTML.
  • In the code area, press CTRL+F to open the search box. Type ]]></b:skin> and press Enter.
  • Just above the ]]></b:skin> paste the code shown below.

                                      

                   .share_button { 
                   width: 300px;


                   height: 50px; 
                   margin: 10px auto; 
                    }
                 .share_button ul { 
                  width: 50%; 
                  height: inherit; 
                  float: left; 
                  list-style: none; 
                  margin: 0 !important; 
                  padding: 0 !important; 
                  }
                 .share_button ul h1 { 
                 margin-top: 9%; 
                 overflow: hidden; 
                 width: 100%;
                 color: #4889F0; 
                 font-size: 18px; 
                 text-shadow:2px 2px 2px #fff; 
                 }
                .share_button ul li { 
                position: absolute; 
                height: inherit;  
                width: 150px; 
                margin: 0 !important; 
                padding: 0 !important; 
                background: #EEEEEE;
               -webkit-transition: all 600ms;
               -moz-transition: all 600ms;
               -o-transition: all 600ms;
               -ms-transition: all 600ms;
               transition: all 600ms;
               text-align: center;
               }
              .share_button ul li h2 { 
              display: inline-block; 
              width: 32%; 
              height: 40px; 
              overflow: hidden; 
              margin-top: 5%; 
              cursor: pointer; 
              border: 0 !important; 
              }
             .share_button ul:first-child li:first-child{
             text-align: right; 
              }
            .share_button ul:last-child li:first-child{
            text-align: left; 
            }
             .share_button ul:first-child li:last-child,
              .share_button:hover ul:first-child li:first-child {
             -webkit-transform: rotateY(90deg);
            -moz-transform: rotateY(90deg);
            -o-transform: rotateY(90deg);
          -ms-transform: rotateY(90deg);
          transform: rotateY(90deg);
           }
            .share_button ul:last-child li:last-child,
           .share_button:hover ul:last-child li:first-child {
         -webkit-transform: rotateY(-90deg);
          -moz-transform: rotateY(-90deg);
        -o-transform: rotateY(-90deg);
        -ms-transform: rotateY(-90deg);
         transform: rotateY(-90deg);  
         }
       .share_button:hover ul:first-child li:last-child,
      .share_button:hover ul:last-child li:last-child {
      -webkit-transform: rotateY(0deg);
      -moz-transform: rotateY(0deg);
       -o-transform: rotateY(0deg);
      -ms-transform: rotateY(0deg);
      transform: rotateY(0deg); 
       }


  • Now that we have pasted the CSS code, we need to now place the HTML code. For this search for
                         <div class='post-footer'> 

  • Place the following code just above the above code.
 <div class='share_button'>
<ul>
<li><h1>
Share It
</h1></li>
<li><h2>
<a expr:href='&quot;http://www.facebook.com/sharer.php?u=&quot; + data:post.canonicalUrl + &quot;&amp;t=&quot; + data:post.title ' title='Share on Facebook'><img src="http://2.bp.blogspot.com/-UK3OEVM0cVw/UwJfjtO-exI/AAAAAAAAGPA/CqQmlIlNJAE/s1600/Facebook.png"/></a></h2>

<h2><a expr:href='&quot;http://twitter.com/home?status=&quot; + data:post.title + &quot; &quot; + data:post.canonicalUrl ' title='Share on Twitter'><img src="http://4.bp.blogspot.com/-XyPHPVsfdz4/UwJfkJmI3JI/AAAAAAAAGPQ/QRGykJJtGow/s1600/Twitter.png"/></a></h2>
</li>
</ul>
<ul>
<li><h1>his page</h1></li>

<li>
<h2><a expr:href='&quot;https://plus.google.com/share?url=&quot; + data:post.canonicalUrl ' title='Share on Google Plus'><img src="http://3.bp.blogspot.com/-_YGvQ_Nrw10/UwJfjhXOGGI/AAAAAAAAGPU/tv1WNfkHdgg/s1600/Google-plus.png"/></a></h2>

<h2>
<a href='javascript:void((function(){var%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)})());' title='Share on Pinterest'><img src="http://4.bp.blogspot.com/-oZgH_AD169o/UwJfjl3ON0I/AAAAAAAAGPE/BLj5lWbsZyE/s1600/Pinterest.png"/></a>
</h2>
</li>
</ul>
</div>


  • After you have done everything, Save your template and should be seeing your Social media buttons at the end of every post.
If you have anything to say, please put them in the comments below.

Post a Comment