Site logo

Archived topic

Add Custom Color & Font Size To Post Title In Latest Posts

5 replies · Started by Matthew on March 24, 2022

Viewing posts 1–6 of 6

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.

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 :)

This archived topic is closed to new replies.