Archived topic
Caption Styling Not Working
6 replies · Started by Shelley on April 30, 2020
Hi. I researched the topic and tried a couple of different css snippets, and nothing seems to work.
As you can see under the first embedded image about 1/3 of the way down the page on the link I included, the caption looks like plain paragraph text. Here's my css:
figcaption {
font-size: 12px;
color: #eee;
}
I also tried
wp-caption-text wp-caption{
font-size: 12px;
color: #eee;
}
What am I doing wrong? Thanks!
Hi there,
Try this:
.wp-block-image figcaption {
font-size: 12px;
color: #eee;
}
Let me know if this helps :)
Awesome, that worked. Thank you!
By the way, is there a list somewhere of every css element within Generatepress that can be used to style a blog post or page?
There isn't a list available unfortunately as there are simply too many classes out there.
The easiest way would be to use right click on the element you are wondering and use the browser inspect tool:
https://www.screencast.com/t/hndH1kkoyCC
Thanks again!
No problem :)