• 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

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 1 replies (of 1 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @peppol – Thanks for the feedback … although you were able to work-around this by changing the NextGEN Gallery code, which multilingual plugin are you using that is causing the problem you are seeing?

    – Cais.

Viewing 1 replies (of 1 total)

The topic ‘Custom Lightbox URL issue’ is closed to new replies.