• Resolved badro0

    (@badro0)


    Hello,

    I have a multilang website using WPML.
    The galleries work fine in the default site language but when i change the language the lightbox stops working. When i click a gallery item it show the lightbox but not the large image, it just keeps loading.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter badro0

    (@badro0)

    When i inspect the code, i see that in the working page the <a..> tag has an href attribute with the image url while in the page that is causing the problem the href attribute is empty:

    <a title="" data-lightbox="ftg-11" rel="ftg-11" class="tile-inner ftg-lightbox ftg-current" href="">

    Hello,
    You can simply duplicate the gallery, translate the titles, captions, etc and paste the gallery code into the translation.
    That’s the way I’m doing it.

    Diego

    (@greentreelabs)

    Hi, the plugin doesn’t support WPML so the workaround is the one suggested by @tony-1970

    Thread Starter badro0

    (@badro0)

    Thank you. I will try this.

    Thread Starter badro0

    (@badro0)

    It works. Thanks!

    Good to hear that this solution works for you.
    Have a nice day.

    This solution won’t work for me… Or maybe I didin’t done everything as you guys said 🙁

    Thread Starter badro0

    (@badro0)

    @relos Here are the steps:

    1 – Create a gallery in the default language
    2 – Change the language from the language switcher in the top admin bar
    3 – Create another gallery with the same images (upload them again if you can’t find them)
    4 – Add it in the page you created in the other language.

    This is what worked for me. Give it a try and let me know if it works.

    Cheers.

    Thank you, badro0! It’s working! A bit uncomfortable, but well, it’s okay 🙂

    Have a nice day! 🙂

    Thread Starter badro0

    (@badro0)

    Good to hear it works 🙂
    Have a nice day as well (y)

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Not working with WPML’ is closed to new replies.