Thursday, October 15, 2015

How to link Blogger and Instagram via Instagram Badges?

We have learned how to share Instagram photos as a slider in blog's page and also in sidebar. Hope you have loved them and even implemented in your blog. But today let us make it simple and learn how to link your Instagram account profile with your blog via Instagram badge.
                  
We can also directly link your blog with instagram account by giving link in one of the page tabs. This appears not much professional. So it's not being advised.

But today let us learn how to share Instagram Badge in side bar and integrate blog and Instagram. This will really boost the blog's traffic. If you're photography blogger, linking of Instagram with your blog is like necessity. 
  1. Login to your blog
  2. Select the blog (if you have many)
  3. Click on layout
  4. Click on Add a Gadget on side bar
  5. Scroll down
  6. Select HTML/JavaScript
  7. Keep the title blank
  8. In content paste the given code
<style>.ig-b- { display: inline-block; }
.ig-b- img { visibility: hidden; }
.ig-b-:hover { background-position: 0 -60px; } .ig-b-:active { background-position: 0 -120px; }
.ig-b-v-24 { width: 137px; height: 24px; background: url(//badges.instagram.com/static/images/ig-badge-view-sprite-24.png) no-repeat 0 0; }
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.ig-b-v-24 { background-image: url(//badges.instagram.com/static/images/ig-badge-view-sprite-24@2x.png); background-size: 160px 178px; } }</style>
<a href="http://instagram.com/INSTAGRAM USERNAME?ref=badge" class="ig-b- ig-b-v-24"><img src="//badges.instagram.com/static/images/ig-badge-view-24.png" alt="Instagram" /></a>
In above code, replace instagram username with your own instagram username. Once it's done, click on Save and you're done. You may also change the location where this badge can be displayed i.e either on side-bar or footer frame of your blog.

No comments:

Read our comment Policy to know your rights & responsibilities before actually leaving a comment for this article.

Related Posts Plugin for WordPress, Blogger...