Custom Lightbox URL issue
-
Hello,
When I use a custom lightbox and provide links for the CSS and JS, it automatically removes the http: prefix and thus the plugin loads it as a local file.
Also if I place the files locally and use a relative path (like /wp-content/path_to_file/file.css), it uses a wrong URL on the multilingual parts of the website. For the default language it will work fine, but for another it will use /lang_code/wp-content/path_to_file.css.
Hope you will fix this in a future release, here is my own quick fix to load local files correctly accross the multilingual website:
File: /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/package.module.lightbox.router.php
Line: 244
Change: $url = home_url($url);
To: $url = get_bloginfo(‘wpurl’).$url;Kind regards,
Pepijn van Vlaanderen
The topic ‘Custom Lightbox URL issue’ is closed to new replies.