Thursday 12 November 2015

How To Add Share Buttons To Your Blog Mobile View


Hello guys, lets do a work around on how to add Facebook Share, like buttons as well as Twitter tweet button to the mobile view of your blog. This will make it easy for your blog readers to easily share and tweet your blog posts while accessing your blog on their mobile phones browsers.


By default, you should notice a SHARE button with a Google+ button on the mobile view of your blog. If not, you should activate it by following the steps below:

  1. Sign in to www.blogger.com
  2. Click on your blog and go to "Layout"
  3. Click on the "edit" link on the "Blog Posts" section

  4. Scroll down and tick the "Show share buttons" option as seen in the screenshot below
  5. Hit the "Save" button and you are done

Once it starts displaying on the mobile view of your blog, if you click on SHARE, a new window should pop up, where you can select where you want to share the post.

  However, visitors might not know they can also share to Facebook, etc using that default share button. Hence, the need to add a separate Facebook share and Twitter button below it.

To do that, go to "Template" > "Edit "HTML"

  1. Click inside the HTML and use CTRL F to find <b:if cond='data:top.showMobileShare'>
  2. Carefully find the ending </div> as seen in the screenshot below:
  3. There are three ending </div> as seen in the screenshot above
  4. Directly below the third one, copy and paste the code below:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
 <span style='font-size: 15px;font-weight:bold;'>Share : </span>
<p align='center'>
<div class='fb-like' data-action='like' data-layout='button_count' data-share='true' data-show-faces='false'/>
<a href="http://twitter.com/share" class="twitter-share-button" data-count-value="horizontal">Tweet</a>
<script src='http://platform.twitter.com/widgets.js' type="text/javascript"></script>
      </p>
</b:if>
  5. Save your template.

You can check the mobile view of your blog and just give yourself a round of applause for a job well done. I hope this works for you.

7 comments:

  1. Filament
    In a single WordPress plugin, Filament contains a group of useful features including Flare, a social share button plugin that makes it easy for others to share your blogpost on Twitter, Facebook, Buffer, and more—even spots like Hacker News and Reddit. Other Filament apps include: MailChimp subscribe form, Google Analytics tracking, all-in-one profiles, code management, and share highlighter.

    ReplyDelete
  2. Filament
    In a single WordPress plugin, Filament contains a group of useful features including Flare, a social share button plugin that makes it easy for others to share your blogpost on Twitter, Facebook, Buffer, and more—even spots like Hacker News and Reddit. Other Filament apps include: MailChimp subscribe form, Google Analytics tracking, all-in-one profiles, code management, and share highlighter.

    ReplyDelete
  3. Filament
    In a single WordPress plugin, Filament contains a group of useful features including Flare, a social share button plugin that makes it easy for others to share your blogpost on Twitter, Facebook, Buffer, and more—even spots like Hacker News and Reddit. Other Filament apps include: MailChimp subscribe form, Google Analytics tracking, all-in-one profiles, code management, and share highlighter.

    ReplyDelete
  4. Filament
    In a single WordPress plugin, Filament contains a group of useful features including Flare, a social share button plugin that makes it easy for others to share your blogpost on Twitter, Facebook, Buffer, and more—even spots like Hacker News and Reddit. Other Filament apps include: MailChimp subscribe form, Google Analytics tracking, all-in-one profiles, code management, and share highlighter.

    ReplyDelete
  5. Filament
    In a single WordPress plugin, Filament contains a group of useful features including Flare, a social share button plugin that makes it easy for others to share your blogpost on Twitter, Facebook, Buffer, and more—even spots like Hacker News and Reddit. Other Filament apps include: MailChimp subscribe form, Google Analytics tracking, all-in-one profiles, code management, and share highlighter.

    ReplyDelete
  6. Filament
    In a single WordPress plugin, Filament contains a group of useful features including Flare, a social share button plugin that makes it easy for others to share your blogpost on Twitter, Facebook, Buffer, and more—even spots like Hacker News and Reddit. Other Filament apps include: MailChimp subscribe form, Google Analytics tracking, all-in-one profiles, code management, and share highlighter.

    ReplyDelete
  7. Filament
    In a single WordPress plugin, Filament contains a group of useful features including Flare, a social share button plugin that makes it easy for others to share your blogpost on Twitter, Facebook, Buffer, and more—even spots like Hacker News and Reddit. Other Filament apps include: MailChimp subscribe form, Google Analytics tracking, all-in-one profiles, code management, and share highlighter.

    ReplyDelete

Translate