![]() In that script, on line 98, there is a hardcoded http string which is used when the script makes a remote request to the getSource/json.php script. Thanks not the script that is being served over http. If you can provide your live site’s URL and admin login credentials then I may able to check the actual issue you’re getting. That always happens in the migration process and there are many contributing factors. All URL configurations are done and configured within Wordpress settings, it’s bad practice to include static link especially that it should be usable for both non-secured and secured sites.Īnd that also means that your migration from your staging to your live site is maybe incomplete. This $this->url() uses the base URL supplied by Wordpress and it’s not something we added statically. The code that’s responsible for that is this wp_register_script( 'vendor-ilightbox', $this->url( 'assets/dist/js/site/' ), array( 'jquery' ), $this->plugin->version(), true ) Plus, the HTTPS and HTTP issue is due to your site’s URL configuration. We included them as part of the theme but we don’t utilize its entire feature which is why the lightbox shortcode has few options.Any customization within that library is user’s responsibility, and anyone is free to check the documentation for each respective library. The iLightbox is included as a lightbox feature of the theme for the sole purpose of a simple lightbox. I want it to look like the Integrity Light lightbox style. And if you could please let me know when it’s been implemented, I would really appreciate it.Īlso, I would still really like some help getting the above iLightbox instance to respect the formatting options I want. If you could please make this change as soon as possible so that my fix does not get overwritten on the next theme update. 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.Ĭould you please report this to your development team and have them include this fix in the next release? Requesting the secure file version will work for non secure sites as well, so it covers all your bases. … if you simply add an s to make the protocol secure (i.e. Themes/pro/cornerstone/assets/dist/js/site/ on line 98, where it says … fadeIn http splitNumRegx ![]() My production site is served over secure https protocol, and so the the smartRecognition feature doesn’t work. 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?).īut more importantly this method only worked on my staging site, which is served over http protocol. $videoLinks.bind( 'click', function(event) ![]() Here is my revised iLightbox instance: // bind iLightbox instance to all possible video links ![]() This option somehow makes the resulting lightbox better formatted (centered, retaining aspect ratio, etc.),īUT 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 ![]() I have now implemented the smartRecognition option in the iLightbox settings. Can you please let me know how to achieve this. Most importantly I want the lightbox to be responsive and automatically take up a certain percentage of the screen while retaining the correct aspect ratio, just like the X Pro iframe lightbox does. The resulting lightbox does not have a transparent overlay, and none of the toolbar controls are visible… how can i get my lightbox to look just like the X Pro lightbox? I’ve tried to find the global options that X Pro uses, but I haven’t been able to. … and this works, but I’m unable to get the ‘light’ skin to work. Ok, so I found the iLightbox docs ( ) so I was able to write my JS function: $('').bind('click', function(event)ĮmbedURL = '//+ ytID + '/?autoplay=1&rel=0' ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |