• Resolved dhlandry71

    (@dhlandry71)


    What would be the best way to change the fonts in this theme?

    I will be using others (mainly sans serif) from Google fonts library and can see that is currently the source for the fonts in this theme.

    Is it just a matter of adding certain classes to “CSS Stylesheet Editor” which I would like to change?

    Thanks Dave L.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    There are two steps to using a Google Font.

    1. You need to enqueue your desired font in the theme, which is easiest using a Google Font plugin:

    https://ww.wp.xz.cn/plugins/search.php?q=google+fonts

    2. You need to target your desired HTML elements using custom CSS.

    Is it just a matter of adding certain classes to “CSS Stylesheet Editor” which I would like to change?

    No – don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated.

    Instead, add custom CSS via a plugin, to override the theme’s default styles. An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS. You could also install a standalone custom CSS plugin if you prefer.

    Let me know if you have any other questions.

    Thread Starter dhlandry71

    (@dhlandry71)

    I ended up installing the Easy Google Fonts plug-in and pretty quickly changed fonts and colors for certain classes within the theme. Thanks for intel. Dave L.

    Moderator Kathryn Presner

    (@zoonini)

    Great, glad you’re set. I’ll mark this thread as resolved but feel free to start a new one if you need help with anything else.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Best practice for changing theme fonts?’ is closed to new replies.