Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1388235
    alainfilion
    Participant

    Greetings!

    I’m having issues trying to use the weight 300 for the Roboto font. I have no effect if I switch from 400 to 300.

    I started using the font as my body font in the Customizer’s Typography section with no success.

    Then I tried by placing @import url(‘https://fonts.googleapis.com/css?family=Roboto:300,400’); in the Customizer’s Custom CSS section.

    Can you help me out with this issue?

    Thanks!

    #1388555
    Paul R
    Moderator

    Hi,

    You can try adding this in your child theme’s functions.php file

    
    // Add roboto Font
    function add_roboto_font() {
    ?>
    <link href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i" rel="stylesheet">
    <?php
    }
    add_action( 'wp_head', 'add_roboto_font' );
    

    Hope that helps.

    #1388699
    alainfilion
    Participant
    This reply has been marked as private.
    #1388874
    Rupok
    Member

    Hi there,

    Thanks for writing back. Looks like new font CSS is loading fin and all the font-weight working as well. Let’s clear your cache and check again.

    Cheers!

    #1389630
    alainfilion
    Participant

    I guess that was it! Thanks for the help!

    #1389781
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1388235 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>