Archived topic
how to set captions for background-images
3 replies · Started by Joost on January 12, 2021
Hi, is there a way to set captions for background-images?
I have a full width container with a background image. I would like to show the caption below the image.
Hi there,
is the Image being added manually to the Container ? If it is then you would need to just insert a text block to manually add the caption, theres no dynamic way to grab the caption from a CSS background.
If its a Header Element using the Featured Image then you can create a shortcode for that - see this topic:
https://generatepress.com/forums/topic/generatepress-dispatch-questions/#post-1093846
hi, thank you. I have to find another way to get captions for my background images.
You're welcome