• Resolved cngcng

    (@cngcng)


    Hello,

    The recent update makes galleries shows only the first image. Rollback to previous version will get back to normal. I’m using rel to group the images. Below is my code. Please help.

    <a rel="<?php echo 'gallery' . $count; ?>" class="fancybox" href="<?php echo esc_url($image_large); ?>" data-caption="<?php echo esc_attr($image_text) . "<span id='image-no'>" . $j . " of " . $no_of_images . "</span>"; ?>">
    		<img src="<?php echo esc_url($image_thumb); ?>" alt="<?php echo esc_attr($image_alt); ?>">
    </a>
    
    <div class="hidden">
    
    	<a rel="<?php echo 'gallery' . $count; ?>" class="fancybox" href="<?php echo esc_url($image_large); ?>" data-caption="<?php echo esc_attr($image_text) . "<span id='image-no'>" . $j . " of " . $no_of_images . "</span>"; ?>">
    		<img src="<?php echo esc_url($image_thumb); ?>" alt="<?php echo esc_attr($image_alt); ?>">
    	</a>
    
    </div>

    Thank you,
    Charon

    • This topic was modified 6 years ago by cngcng.
Viewing 12 replies - 1 through 12 (of 12 total)
  • akimo

    (@akimo)

    I have the same problem exactly. The previous version of the plugin used to work perfectly. Now a click on any image links to the page of the said image (wp-content/uploads/image.jpg). Even with a Rollback to Version 3.0.14 the issue remains. So now my photos don’t produce a lightbox. I have yet to figure out any solution.

    Plugin Support Miha

    (@mplusb)

    Hello @cngcng,

    Please use “data-fancybox” instead of “rel”.

    @akimo,

    Please send me the website’s url so I can take a look.
    It is possible that it’s a jQuery error.

    Thank you,
    Mihaela

    Thread Starter cngcng

    (@cngcng)

    Hi @mplusb,

    It works after the replacement. Thank you ????????
    Does it mean the “rel” is no use anymore?

    Charon

    • This reply was modified 6 years ago by cngcng.
    fancybug

    (@fancybug)

    @mplusb

    I have exact same ‘direct to image page’ bug since today’s update of fancybox.
    Check: -https://www.lornet-design.net/les-voies-des-saigneuses/

    And any other pages with image on this website.

    Shmanich

    (@shmanich)

    I have the same problem. Rollback to v3.1.2 solved the problem.
    Website: shmanich.ru
    Sample of code of my gallery

    
    <a href="/wp-my-content/2018/pictures_photos/translates/queen_trans/queen_anato_audiocommentaries_04.jpg" rel="1"><img class="size-medium alignleft" title="Queen — A Night At The Opera. Аудиокомментарии к видеоверсии альбома (Скриншот 04)" src="/wp-my-content/2018/pictures_photos/translates/queen_trans/queen_anato_audiocommentaries_04_(preview).jpg" alt="Queen, A Night At The Opera" width="250" /></a>
    
    Plugin Support Miha

    (@mplusb)

    @cngcng,

    Yes, rel is no longer used.

    @fancybug, @akimo, and @shmanich

    Please update to the latest version.

    Thank you,
    Mihaela

    • This reply was modified 6 years ago by Miha.
    fancybug

    (@fancybug)

    @mplub

    Updated.
    Problem solved concerning the ‘direct to page’ image.
    Still bad borders applying on most images (not so annoying, just do not allow borders…)
    A strange behaviour when passing from an image to another: first image stays a bit behind the next/new one openned in fancybox.

    Thanks for the quick fix anyway.

    urmelaufdemeis

    (@urmelaufdemeis)

    Hi, I’ve the same problem as described by akimo:

    I have the same problem exactly. The previous version of the plugin used to work perfectly. Now a click on any image links to the page of the said image (wp-content/uploads/image.jpg). Even with a Rollback to Version 3.0.14 the issue remains. So now my photos don’t produce a lightbox. I have yet to figure out any solution.

    Adress of my blog: https://papeter-ie.de/wordpress/

    Can someone get help?

    akimo

    (@akimo)

    @mplusb The problem was solved when I updated again to the latest version.
    May I ask what it was about? Thank you!

    • This reply was modified 6 years ago by akimo.
    urmelaufdemeis

    (@urmelaufdemeis)

    @mplusb The problem was solved when I updated again to the latest version.
    May I ask what it was about? Thank you!

    just the same happend at my blog. Right now, it works as good as the weeks before. Thanks.

    Shmanich

    (@shmanich)

    @mplusb
    Bug fixed. Thank.
    What tag is used instead of “rel”?

    Plugin Support Miha

    (@mplusb)

    @shmanich, sorry for the late reply – just noticed it.
    Please use “data-fancybox” instead of “rel”.

    • This reply was modified 6 years ago by Miha.
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Gallery shows only the first picture after latest update’ is closed to new replies.