Site logo

Archived topic

Label widget change font size and font

9 replies · Started by tanya on January 21, 2022

Viewing posts 1–10 of 10

I want to change my label font size and text but don't know how. This is the code I have for one of my labels. I want it to be 16 font and kanit font

<p class="wp-block-tag-cloud wp-block-tag-cloud">
<a href="https://fablemoonsays.com/tag/books/" class="tag-cloud-link tag-link-79 tag-link-position-1" style="font-size: 12pt; aria
label Books (1 item)"> ==

Hi there,

you would use some CSS eg.

.wp-block-tag-cloud a {
    font-size: 20px !important;
    font-family: Your font name;
}

Note the Tag Cloud sets the individual font size of each tag based on the weight of the tag, the more weight the larger its size so the CSS above has !important to force them all to one size.

That did not change anything. I did it in the customize, additional css.

It is in there now

Can you make sure the CSS i provided is an exact copy in the Additional CSS. I see the code on your site is missing a .

Oh how embarrassing. I must of messed it up the first time also. It works now. Thank you

Oh it is very easily done. I have lost hair over a simple full stop or semi-colon :)

Glad to be of help.

This archived topic is closed to new replies.