How to change a font family of a custom class?

Question:
How to change a font family of a custom class?

Product:
Wix Studio Editor

What are you trying to achieve:
I’m trying to change font family for a specific custom class. This font is on adobe fonts.

What have you already tried:
I wanna set a specific font family in this text “heroTitle”

It`s not working.
the only thing that worked for me was setting this font family in .rich-text__text , but it changed all the fonts in my website, and I wanna to change only the heroTitle class font.

If you want to target a specific element, you’ll need your custom class, along with the class that targets the part of the element you want to customize. For example:

@import url("https://use.typekit.net/fhd7jsm.css");

.heroTitle .rich-text__text {
    font-family: "congenial", sans-serif;
}
1 Like