Docs    Instagram    Customizations

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.

Javascript:

Important! Do not disable the lightbox before adding this code.

$('#sb_instagram .sbi_item').each(function(){
    $sbi_link_area = $(this).find('.sbi_link_area');
    $sbi_link_area.attr({
        'href':$sbi_link_area.attr('data-url'), 
        'target':'_blank'
    }).removeAttr('data-lightbox-sbi');
});

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

Technical Support

Still have questions? We are here to help you succeed.

Open a support ticket