Ok, another update. I have now implemented the smartRecognition
option in the iLightbox settings. This option somehow makes the resulting lightbox better formatted (centered, retaining aspect ratio, etc.),
BUT my website is on a secure protocol (SSL/HTTPS), so Chrome throws an error when iLightbox attempts to make an API request to its getSource/jsonp.php
file to determine the linked media type/source, and so the lightbox is not successfully launched 
Here is my revised iLightbox instance:
// bind iLightbox instance to all possible video links
$videoLinks = $( '[href*="youtube.com"], [href*="vimeo.com"]' );
$videoLinks.bind( 'click', function(event)
{
event.preventDefault();
$.iLightBox([
{
URL : $( this ).attr('href'),
type : 'iframe',
options :
{
smartRecognition: true,
skin : 'light',
overlay :
{
opacity : 0.85
},
}
}
]);
});
My skin
and opacity
settings are still being ignored for some reason (perhaps they are being overwritten by default iLightbox options set by X Pro?).
But more importantly this method only worked on my staging site, which is served over http
protocol. My production site is served over secure https
protocol, and so the the smartRecognition feature doesn’t work.
I found the source of this issue in:
themes/pro/cornerstone/assets/dist/js/site/vendor-ilightbox.min.js
on line 98, where it says …fadeIn http splitNumRegx
… if you simply add an s
to make the protocol secure (i.e. https
) then the call to getSource/jsonp.php
doesn’t get flagged as dangerous by Chrome and Safari, and so the lightbox is successfully created.
Could you please report this to your development team and have them include this fix in the next release? Requesting the secure https://
file version will work for non secure sites as well, so it covers all your bases. No reason to use the non secure URL.
If you could please make this change as soon as possible so that my fix does not get overwritten on the next theme update. And if you could please let me know when it’s been implemented, I would really appreciate it.
Also, I would still really like some help getting the above iLightbox instance to respect the formatting options I want. I want it to look like the Integrity Light lightbox style.
Thanks!