Archived topic
Featured Image - Caption not appearing
9 replies · Started by John on July 17, 2021
Hello Folks at GP-Support !
A minor problem, but important to the artists who make their images accessible for free via Unsplash: The caption is not being displayed below the respective features images in posts. I enter into the caption the name of the artist whose image I pulled from Unsplash.
See examples here under Exercises on http://www.understand-culture.com:
https://understand-culture.com/exercises/
Thanks.
John
Hi John,
Give David's snippet here a shot:
https://gist.github.com/diggeddy/5f7c3a4584a8beb51febc9c4f33d6c5c
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know if this helps :)
Yes, sir ... that worked, Leo/David. Thank you very much?
John
P.S. Is it possible to add just a little space between the bottom of the image and the caption? Just a tiny amount.
Hi John,
I'm not able to see the post since it requires a login.
Can you provide the info using the private info field?
Thanks!
Hello Ying,
Thanks so much for responding to my request. Please see in the Private Information field login credentials for both Admin and User. They are the same. Thanks !
John
P.S. And while you are looking at this, please see that the images under Growth ... https://understand-culture.com/growth/ ... are far too large, even though I had cropped then down.
See the difference between those images under Growth and the images under Cases ... https://understand-culture.com/category/exercises-list/cases/ ... and Surveys ... https://understand-culture.com/category/exercises-list/surveys/. Those are, I think, the right size.
Hi there,
add this CSS to adjust the space between Image and Caption:
.wp-caption .wp-caption-text {
padding-top: 12px;
}
For the image sizes, go to Customizer > Layout > Blog --> Featured Images >>> Pages - and set its Location to Above Title.
David,
I realize that many of my support requests are about really simple stuff. I'm that much more impressed, and thankful, to you and your colleagues. You're all very responsive, and always have the solution.
Resolved.
Thank you from Bonn, Germany !
John
Glad we can be of help!
Is it possible to add this functionality into the GP theme or plugin? I prefer not to have to add code manually to achieve it. Seems like a simple checkbox to display the caption for the featured image could be added as an option under Customizer > Layout > Blog > Featured Images?
Hi there,
it is something we are considering ie. Featured Image Captions in a future update.