• Resolved massimod

    (@massimod)


    Hello.

    After the latest update today, the lightbox popup doesn’t work in Blog Posts anymore. There is a magnifying glass and nothing ….

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    A link please…

    Thread Starter massimod

    (@massimod)

    here it comes:

    https://www.discovervenice.eu/venice-carnival-bring-a-mask-rent-a-mask-and-prepare-to-have-a-lifetime-event/

    I have touched nothing latetly, just the updates.

    • This reply was modified 6 years, 10 months ago by massimod.
    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    What is exactly the code part on the page content to show the image? Is it like:
    [caption ... or <div ... <img ... or…

    Thread Starter massimod

    (@massimod)

    Jacob i don’t follow. What code ? From who ?

    Thread Starter massimod

    (@massimod)

    If i remember correctly this was posted by me to you at some point. Code from some other plugin for lightbox.

    BUT again, this was working until the update.

    Here is the js again in case you need it:

    setTimeout(function() { $('.wp-caption').each(function() { var $this = $(this),$a = $(this).find('A.ari-fancybox'),title=$a.find('IMG[alt]').attr('alt') || '',description=$(this).find('.wp-caption-text').html() || ''; if (!$a.length) return ; $a.attr('data-caption', title + '<br>' + description); }); }, 100);

    • This reply was modified 6 years, 10 months ago by massimod.
    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Yes i use that approach and it works in all my test sites.

    What i want to know is the content of the blog post when you switch to the html(text) mode of the post editor, between:

    It hoped to restore the economic downturn and revitalize tourism in the city of Venice.

    and

    The rebirth of the Carnival of Venice in 1979,

    I tried to reproduce your issue, but it works for me.

    Maybe (…) the problem comes from the link to fra_cas in the caption, but i also tried that with no problems.

    Thread Starter massimod

    (@massimod)

    <p style="text-align: justify;">In the 1970s, in an attempt to revive the suffering city, the Italian government decided to bring back the most famous festivity in Europe. It hoped to restore the economic downturn and revitalize tourism in the city of Venice.</p>
    
    [caption id="attachment_2140" align="aligncenter" width="940"]<a href="https://www.discovervenice.eu/wp-content/uploads/2013/04/5592919505_92c59a4b7f_b.jpg"><img class="size-large wp-image-2140" src="https://www.discovervenice.eu/wp-content/uploads/2013/04/5592919505_92c59a4b7f_b-1024x768.jpg" alt="Carnevale Venezia 2011" width="940" height="705" /></a> By: <a href="https://www.flickr.com/photos/fra_cas/5592919505/" target="_blank" rel="noopener">fra_cas</a>[/caption]
    <p style="text-align: justify;">
    
    The rebirth of the Carnival of Venice in 1979, proved the first modern full scale Carnival of Venice to be a major success.  Held with grand elegant carnival masks, a parade of beautiful couture costumes, awards ceremony, and wonderful food and drink, the Carnival of Venice was reborn into modern day Italy.</p>
    Thread Starter massimod

    (@massimod)

    Actually it is broken everywhere except your images galleries.

    Here:

    https://www.discovervenice.eu/community/venice-carnival/venice-carnival-2016/#post-34

    it was working great, now it doesn’t.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Found the issue. It is caused by a spinoff of recent performance improvements.
    It happens on pages where there is only lightbox on non-wppa images, while there is nothing else from wppa on the page.
    This will be fixed asap.

    The workaround is simple:

    Add somewhere in the post a dummy wppa item as follows:

    [wppa type="landing"][/wppa]

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Alternatively you can now install the current development version, where the fix is implemented.

    See this ducumentation page for instructions

    Thread Starter massimod

    (@massimod)

    Installed the dev version and seems to work fine.

    Thank you !

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Updated and no lightbox popup in posts’ is closed to new replies.