WordPress.org

Forums

Writr
[resolved] Easy way to replace or add additional font? (6 posts)

  1. design_studio
    Member
    Posted 1 year ago #

    Hello. I was wondering is there an easy way to replace or add additional font to the theme. Basically I like how the font looks for the menus, headings etc. but I would like the content to use a thinner font. I replaced the default font in functions.php and it worked, but when I wanted to add additional font through the child theme functions.php it is giving me an error that the font is already loaded in main functions.php. Is using the @import url(http://fonts..... option the easiest way?
    Thank you

  2. Are you aiming to add a Google font? The easiest way to add new Google fonts is to use a plugin instead of editing the theme directly - there are lots to choose from:

    http://wordpress.org/plugins/search.php?q=google+fonts

    If you just want to use a standard system font - like Helvetica, Verdana, or Georgia, then you can do that with some custom CSS which I'd be glad to help you with.

    Just let me know what you're after.

  3. design_studio
    Member
    Posted 1 year ago #

    Thank you for your quick response. Yes, I forgot to mention that I am trying to use another Google font. I didn't want to use plugin as I am trying not to use too many (plugins). I already used some of the standard system fonts as you suggested with CSS. Trying to add another custom font through my child theme functions.php as I said didn't work, so I suppose I'll go for the plugin solution. Thank you one more time for your answer. Have a Merry Christmas and Happy New Year.

  4. I didn't want to use plugin as I am trying not to use too many (plugins).

    There's nothing wrong with using plugins like this - that's what they're there for. :-)

    It is certainly possible to hard-code new Google fonts into a child theme but it's more complicated than just activating a plugin. :-)

    If you let me know which Google font you want to use and provide a link to your site I'd be glad to help you with the specifics.

  5. design_studio
    Member
    Posted 1 year ago #

    Thanks for your suggestion. I already picked a plugin and is working fine for now. As the site is still offline I cannot provide a link.

  6. Glad you're all set.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags