Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #832457

    In Customizer >> Typography . . . I have selected Roboto font for headings and body font. This font has the following font weights available: 100, 300, 400, 500, 700, 900. However, when I specify a change to a font style for a specific element in Cornerstone, weights 400, 500 and 700 have no effect. How do I get all the font weights to be available?

    Thanks in advance,

    Craig

    #832890

    Darshana
    Moderator

    Hi there,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #832918
    #833120

    Zeshan
    Member

    Hi Craig,

    Thanks for the URL!

    This is because you can select only one font weight from the setting. If you require to use multiple font weights for different elements, try adding following CSS code in your child theme’s style.css file:

    @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,400italic,500italic,700,700italic,300,300italic);

    It will load Roboto font with 300, 400, 500 and 700 weights.

    Thank you!

    #871427

    1. Where exactly would I place this in the style.css file?

    2. Can I do this in the Child Theme file that we use whenever we create a new site so that we don’t have to keep doing it?

    3. Can I do this modification to existing sites from within WordPress?

    —Clearly I don’t modify core files much 🙂

    Thanks in advance!

    UPDATE: Is this as easy as going to WordPress Admin > Appearance > Edit . . . and then adding the code below what’s currently there, which is mostly a comment of the child theme info?

    #872284

    Lely
    Moderator

    Hello Craig,

    You can access style.css using FTP like Filezilla then go to this folder: wp-contents/themes/x-child/. Download style.css file then add the suggested code and upload it again on the same folder.

    Hope this helps.

    #873135

    Thanks!

    #873727

    Prasant Rai
    Moderator

    You are most welcome. 🙂