Trigger click on image in an Envira gallery to load it's lightbox when the page finishes loading.
// Target a specific linked image in the gallery - best when loading multiple galleries on the page
jQuery(window).load(function(){
jQuery(".envira-gallery-146").trigger('click');
});
// Target the first linked image in the gallery - best when loading a single gallery on the page
jQuery(window).load(function(){
jQuery(".envira-gallery-wrap .envira-gallery-item:first-child a").trigger('click');
});