Gallery Captions below Images (not inside) with Gutenberg
-
Hello,
in my wordpress GALLERIES, I am looking for a solution to move figcaptions at the bottom of the figure like other simple images, and not inside the image (because sometimes I have a very long caption all over a small image).
I tried a few solution like this one but it is only possible with a defined height so that it revokes gutenberg default gallery’s adaptability (responsive, possibility to have a thumbnail/large gallery, auto-images-resizer…).
There might be a solution with flexbox, but I think the best way would be to simply edit the php structure moving <figcaption> outside of <figure> ?? Is there any hook or other possibility to achieve that ?
I think I am not the only one looking for this answer, thanks in advance !
<figure> <a href="https://jouy-en-josas-histoire.fr/wp-content/uploads/2022/01/GRH_image-5.png" data-rel="lightbox-gallery-ScCf5ZOe" data-rl_title="" data-rl_caption="" title=""> <img loading="lazy" width="412" height="308" src="https://jouy-en-josas-histoire.fr/wp-content/uploads/2022/01/GRH_image-5.png" alt="" data-id="473" data-full-url="https://jouy-en-josas-histoire.fr/wp-content/uploads/2022/01/GRH_image-5.png" data-link="https://jouy-en-josas-histoire.fr/les-lieux-de-la-memoire/lieux-de-culte/leglise-saint-martin/attachment/grh_image-5/" class="wp-image-473" srcset="https://jouy-en-josas-histoire.fr/wp-content/uploads/2022/01/GRH_image-5.png 412w, https://jouy-en-josas-histoire.fr/wp-content/uploads/2022/01/GRH_image-5-300x224.png 300w" sizes="(max-width: 412px) 100vw, 412px"> </a> <figcaption class="blocks-gallery-item__caption"> <em>sur le plan terrier de 1765 les cimetières, petit et grand, sont identifiés par deux croix</em> </figcaption> </figure>
The page I need help with: [log in to see the link]
- The topic ‘Gallery Captions below Images (not inside) with Gutenberg’ is closed to new replies.