Archived topic
Add Custom Color & Font Size To Post Title In Latest Posts
5 replies · Started by Matthew on March 24, 2022
I added the latest posts block to my home page and it appears to be using the default link color and body font settings. I'd like to change the color and font size. More specifically I'd like to use my h2 color and font settings instead.
Hi there,
Any chance you can link us to the site in question and point us to where we should be looking at?
You can use the private information field.
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
I just have one post and a couple dummy posts up right now (posts with only titles and no content) but you're welcome to look.
You can use this CSS:
.wp-block-latest-posts a {
color: #000;
font-size: 25px;
}
For the color, if you are using global color, you can switch the #000to the global color, eg. var(--global-color-8).
Thank you!
No problem :)