Skip to content

Add support for Image Descriptions #2700

@Meru

Description

@Meru

We can make inline image descriptions, but only if image is centered. And it is not seen once you open the image. It is inconvenient.

I'd like to see a support for Image descriptions that are seen when you preview the image.

GLightbox supports them, they just need to be properly implemented.

<!-- Simple Description -->
<a href="large.jpg" class="glightbox4" data-glightbox="title: My title; description: this is the slide description">
  <img src="small.jpg" alt="image" />
</a>

<!-- Advanced Description -->
<a href="large.jpg" class="glightbox5" data-glightbox="title: My title; description: .custom-desc1">
  <img src="small.jpg" alt="image" />
</a>

<div class="glightbox-desc custom-desc1">
  <p>The content of this div will be used as the slide description</p>
  <p>You can add links and any HTML you want</p>
</div>

One way would be to use ALT Text and and use its contents for description.

![description goes here](image4.jpg){: width="972" height="589" .w-25 .right}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions