Disable Lightbox but keep the hover effect intact

By default disabling the lightbox will also remove the hover effect on each post. This will preserve that effect and make the post link back to Instagram on click.


$('#sb_instagram .sbi_item').each(function(){
    $sbi_link_area = $(this).find('.sbi_link_area');

The red code makes the link open in a new tab. Remove this if you want the link to open in the same tab