Add “Follow on Instagram” Button to Hashtag or Location Feed

If you would like to add a “Follow on Instagram” button below a hashtag or location post, use this snippet customized to what account you want to link it to.

JavaScript

$('.sbi').each(function() {
  if (! $(this).find('.sbi_follow_btn').length) {
    $(this).find('#sbi_load').append('<div class="sbi_follow_btn"><a href="https://instagram.com/puma" style="" target="_blank"><i class="fa fa-instagram"></i>Follow on Instagram</a></div>');
  }
});

The user name of the account you want the button to link to.
The text for the button.