Adding a video description in a similar way to a image caption
IT Nursery
May 25, 2022
0
I’m looking for a solution to add a short description to a embed video that will allow for it to be styled a bit like the one that is used for images.
The only option I have found is using JavaScript to find the paragraph after the image and add a class which is then styled. This obviously could result in human error depending on the content after the image.
1 Answer 1
It will be interesting to see how the new evolving WP Gutenberg editor will handle shortcodes and embeds.
If you use the shortcode for embedding, then a semi workaround, without UI support:
where the custom desc attribute is supported with with this kind of wrapper: