WordPress.org

Forums

How to change the font of my website (4 posts)

  1. TJ1
    Member
    Posted 1 year ago #

    I am using a theme on my website that does not have a way to change the fonts.
    My website is here: http://www.incomobi.com

    Can someone tell me how can I change the font type and size of the main text as well as possibly the line spacing?

    Thank you very much for the help.

  2. jibbius
    Member
    Posted 1 year ago #

    It's really hard to help you with this, because the code is specific to your theme.

    You would really be best to contact the theme's developer, or consider hiring a freelance developer.

    The following code is located in your site's header:

    <style type='text/css' media='screen'>
    	h1{ font-family:"Oswald", arial, sans-serif;}
    	h2{ font-family:"Oswald", arial, sans-serif;}
    	h3{ font-family:"Oswald", arial, sans-serif;}
    	h4{ font-family:"Oswald", arial, sans-serif;}
    	body{ font-family:"Lora", arial, sans-serif;}
    	blockquote{ font-family:"Lora", arial, sans-serif;}
    	p{ font-family:"Lora", arial, sans-serif;}
    	li{ font-family:"Lora", arial, sans-serif;}
    </style>

    It's impossible for me to know exactly where this code is coming from, but my best guess would be header.php in your theme's directory.

    If you know some basic CSS you will be able to change these fonts + styles. However, if you're unsure of what you are doing - I wouldn't touch these files. There is a risk of breaking the site if you perform these updates live and you make a mistake.

    Final suggestion - if this is a theme that you ever intend to update, then you should use a child theme instead of updating the parent theme.

  3. TJ1
    Member
    Posted 1 year ago #

    Thank you very much for the explanation, that makes a lot of sense.

    To change the font I finally installed a Google font plugin and from there I could easily change the fonts.

  4. jibbius
    Member
    Posted 1 year ago #

    Good solution - I hadn't even thought of doing that!
    Glad it all worked out.

Topic Closed

This topic has been closed to new replies.

About this Topic