• Resolved Annekee

    (@annekee)


    Hello Johannes! The images in the gallery work fine with the lightbox. But an image in the post, linking to its media file, doesn’t open in the lightbox. Perhaps I need to insert a ‘rel=’ in the link?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Johannes Kinast

    (@goaroundagain)

    Hi @annekee,

    Could you please provide a link where this happens?

    Thread Starter Annekee

    (@annekee)

    No, I’m sorry, I’m designing with a local set-up. Example:

    <a href="https://localhost:8888/folder/wp-content/uploads/2022/09/an-image.jpg"><img class="alignleft wp-image-5709" src="https://localhost:8888/folder/wp-content/uploads/2022/09/an-image.jpg" alt="" width="530" height="530" /></a>

    This also happens when there is no (native wordpress) gallery in the post.

    Plugin Author Johannes Kinast

    (@goaroundagain)

    Do you use the Image Block? There should be a <figure> element around the link and image with the wp-block-image class.

    Thread Starter Annekee

    (@annekee)

    No, it is used exactly as I show in the code. Sorry, I will use another lightbox. Thank you for your time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image in post but not in gallery: no lightbox’ is closed to new replies.