Archived topic
How to Display Featured Image Caption using GeneratePress Elements Feature?
5 replies · Started by Eddy on October 20, 2020
Hi,
Please see the following video:
https://www.awesomescreenshot.com/video/1421055?key=8b4a8a38bc564a44b3519730d337cf61
The url in question:
https://loseaboss.com/hello-world/
I need guidance on what code to use and how to apply it on the site using generate press site element.
Thanks.
Eddy
Hi there,
Try David's solution here:
https://generatepress.com/forums/topic/cant-display-featured-image-captions/#post-854633
Adding PHP: https://docs.generatepress.com/article/adding-php/
Thanks but is there a way to do this using the elements feature already built into generate press so you don't need to download another plugin code snippets.
Unfortunately not. Code Snippets should have minimal effect on your site - it simply allows you a way to add code and we use it all the time.
Another solution would be to use a child theme and add it in the function.php file.
Okay thanks for the clarification. It would be great if being able to make changes like this without another plugin can be built into the theme. But I'm happy to hear it will have minimum impact on speed.
Thanks
No problem :)