• Hi all!

    So far I have been using Magnific Popup, but have switched to the Photoswipe plugin.

    I would like to have multiple images on a page, each grouped into individual slideshows.

    While Magnific Popup had no problem with this, Photoswipe sees all the images on the page. A slideshow that is supposed to have only 8 images then has 70.

    I tried data-lbwps-gid, but that only seems to work for individual images, not groups.

    What can I do?

    Regards
    Michael

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    Yes, data-lbwps-gid only works for individual images. So every image which should be in a group has to get the same data-lbwps-gid attribute. However you can of course to this multiple times – for example data-lbwps-gid="g1" for all images in the first group and data-lbwps-gid="g2" for all images in the second group and so on.

    Only WordPress galleries or Gutenberg gallery blocks can also be handled as groups automatically if that option is enabled in the backend settings of Lightbox with PhotoSwipe since WordPress provides call back functions for plugins to deal with gallery blocks. However many custom galleries just implement their own code to generate HTML output and my plugin has no chance to add that attribute in this case. It is also not possible for me to examine every existing gallery solution for WordPress to find out how the HTML code is generated by that gallery.

    How did Magnific Popup do the grouping? What was considered to be a single group for Magnific Popup?

    • This reply was modified 1 year, 11 months ago by Arno Welzel.
    Thread Starter pixx

    (@pixx)

    How do I put code or a screenshot in here?

    Plugin Author Arno Welzel

    (@awelzel)

    Well – code can just be inserted as text. Otherwise you need to describe it in your own words how it is done.

    Thread Starter pixx

    (@pixx)

    I just get an error message, because the alt-tag of the pictures is missing ….

    Plugin Author Arno Welzel

    (@awelzel)

    What do you mean by “I just get an error message”? What error message?

    Thread Starter pixx

    (@pixx)

    If I insert my code I read:

    This image has an empty alt attribute; its file name is 1.jpg

    • This reply was modified 1 year, 11 months ago by pixx.
    Plugin Author Arno Welzel

    (@awelzel)

    With “code” I mean text, not an image. And if that does not work:

    “Otherwise you need to describe it in your own words how it is done.”

    So – WRITE here what you are talking about ??

    Thread Starter pixx

    (@pixx)

    The code contains images …

    Plugin Author Arno Welzel

    (@awelzel)

    Well code (deutsch: Quelltext, Quellcode) is text and not an image.

    You can also just upload the image to your website and post a link to oit.

    Thread Starter pixx

    (@pixx)

    So to be precise, it is HTML. With

    Thread Starter pixx

    (@pixx)

    The system just ate the rest of my text. I’m out here.

    Thank you Arno.

    Plugin Author Arno Welzel

    (@awelzel)

    You can also contact me via e-mail – see https://arnowelzel.de/en/about-me. Ich spreche auch Deutsch ;-).

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Force Photoswipe to just handle groups of pictures’ is closed to new replies.