• Resolved shane502

    (@shane502)


    This is a staging site:
    I modified some of the classes in the plugin to point to my own custom gallery block.
    The lightbox works with my block; but it does not pull up the other images – however it does get all image details for each one (title, alt text, etc), but when using the next/prev buttons it just shows the same image, even though the thumbnails at the bottom show the correct photo information.

    How can I get it to cycle through the images?

    I can provided markup / php / scss if the page link doesn’t have enough info.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter shane502

    (@shane502)

    It appears .glg-custom-wrap is grabbing the same photo href instead of the proper one in my img tag.

    Thread Starter shane502

    (@shane502)

    I was actually able to fix it by rewriting some of the code after the “// Gutenberg Adaptive” comment in glg-functions.php to work with my grid gallery. Could not stand the WP Flex Gallery and it’s super weird wrapping and a thousand classes for something so simple as grid.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lightbox shows same image, but gets correct details’ is closed to new replies.