• I use AJAX to dynamically change gallery content. I make sure to apply the_content on it.

    While Meow Lightbox works perfectly fine with a fresh loaded URL it doesn’t with AJAX content (click on a taxonomic name or page number will load new content via AJAX).

    I already do this within success- section:

    $('.mwl-img').off('click');
    renderMeowLightbox();

    java console shows “Rendering lightbox” message. No errors.

    but: best I could reach is a lightbox showing the image size as is in gallery and without details (title, shutter speed, camera, …).

    img-tag contain same information when received via AJAX and via page reload.

    I need help. This makes me sick… I am in bed right now and can’t stop overthinking this..

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Kay Helena Wahdan

    (@kayhelena)

    Good morning.

    I still did not find a way out….

    Can someone help me, please? Any suggestions?

    Thank you very much ??

    Kay Helena

    Plugin Support Val Meow

    (@valwa)

    Hey @kayhelena! ??

    This is expected; the meta information won’t display unless it’s in the “mwl_data” window object, which loads with the page. If you add images dynamically afterward, the data needs to be included in this object. We’ll work on updating this automatically if the image is from your library, but that’s not the case right now. Thanks for your patience and understanding.

    Thread Starter Kay Helena Wahdan

    (@kayhelena)

    Hi @valwa

    Thank you for the answer and your explanation.

    Would it be enough to update mwl-data? Or would something along the lines of the code snippet I gave above also need to be executed?

    $('.mwl-img').off('click');
    renderMeowLightbox();

    If I knew that, I could write my own workaround that would retrieve the necessary data via a second ajax at the end of my content update, clean mwl-data of elements that are no longer needed and add new ones.

    Many, many thanks for the nice plugin and your support!

    Best regards Kay Helena

    • This reply was modified 4 months, 2 weeks ago by Kay Helena Wahdan. Reason: (added greetings)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.