Docs    Instagram    Customizations

Hide Posts Based on Number of Likes

Hide posts with fewer than the number of likes you specify.

Javascript

var minimum_likes = 100;
jQuery('#sb_instagram .sbi_item').each(function(){
  var likes = parseInt(jQuery(this).find('.sbi_likes').text());
  if(likes < minimum_likes) {
  	jQuery(this).hide();
  }
});

Minimum number of likes for the post to be displayed.

support

Couldn’t find your answer in the docs?

Contact Support

Was this article helpful?