How to change font for one header only using theme-loaded fonts

  • Hello!

    I’d like to change the font for one of my headers so that it’s different from the other H1 heading fonts.

    The trouble is the TYPE of font that is working. All of the fallback fonts will load, but I’d like to load one of the fonts that came preloaded with my theme (Appetite), such as “Cinzel” or “Jubilat”.

    Here’s my CSS:
    .welcome-to-heart-wood-header {
    font-family: “courier”;
    }

    Thanks for your advice!

    The blog I need help with is: (visible only to logged in users)

  • In this case, that won’t work because the webfont needs to be enqueued with the site first, which can’t be done via CSS.

    Our custom fonts take care of that automatically, but it does apply site-wide: https://wordpress.com/support/custom-fonts/

  • The topic ‘How to change font for one header only using theme-loaded fonts’ is closed to new replies.