• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

two different font families

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › two different font families

This topic is: not resolved

Tagged: font, font-family

  • This topic has 2 replies, 2 voices, and was last updated 5 years, 9 months ago by gsimusic.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 12, 2017 at 9:23 pm #207674
    gsimusic
    Member

    Hello, I'm using the Centric Pro theme.
    I can easily change my global font, but how can I set different font families for headings and regular text?

    Example: I want to use Open Sans for headings and Raleway for regular paragraph text.

    Thanks in advance!

    http://ourworshipsound.com
    June 13, 2017 at 2:01 am #207679
    Victor Font
    Moderator

    Centric Pro loads its Google fonts at line 26 in functions.php.

    wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:300,700|Spinnaker', array(), CHILD_THEME_VERSION );

    Out of the box, it is using Lato and Spinnaker. You can either change these to Open Sans and Raleway or add Open Sans and Raleway to these fonts.

    To use the new fonts in your theme, you have to look at the style sheet provided by Google to learn what the font-family is called in CSS. Go to the Google fonts page and select the font. In the meta box that says 1 Font Selected, you'll see the CSS font family. For Open Sans it is font-family: 'Open Sans', sans-serif;. For Raleway it is: font-family: 'Raleway', sans-serif;

    Because there are many different HTML elements that can be used as headers (h1 through h6, widget title, etc.), you need to target the specific elements you want and add the appropriate font-family to the CSS for that element. For the body text, adding font-family to the body tag should be sufficient. You should probably learn to use your browser's inspect tool to determine the correct tags. https://victorfont.com/how-to-use-your-browsers-inspect-tool/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    June 13, 2017 at 10:56 am #207703
    gsimusic
    Member

    That helped a lot. I was missing in the CSS where the body text styles were. That helped me locate the tags I needed to change and add. Many thanks, Victor!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble