Hi,
I am trying to implement some code that automatically opens a lightbox when visitors come from a certain referrer. I’m having trouble as I’m not sure exactly how the X lightbox shortcode works. The page is in the secure form and the code is below. Any guidance or help would be greatly appreciated. Thanks in advance!
if (document.referrer.indexOf('facebook.com') >= 0){
jQuery(document).ready(function($){
setTimeout(function() {
$('#x-lightbox-1').click();
}, 5000);
});
}