Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1372530
    Nima
    Participant

    Hi

    I am interested in utilizing the Montserrat web font. I understand on Google Fonts has 18 styles/weights available. Why are there only two available for this theme? 400 and 700?

    Also, how do I add additional weights?

    I am interested in adding 500 and 600.

    Is there some kind of licensing preventing you from adding those weights?

    Thanks!

    #1373038
    Rupok
    Member

    Hi there,

    Thanks for writing in! If we add multiple variants by default then your site will be incredibly slow as it’s not usual to add that much font-weight variations. If you want to add the font with Child Theme then you can control which weights you want to add.

    Let’s add this within Child Theme’s functions.php :

    add_action ('wp_head', 'montserrat_google_font', 9999 );
    function custom_google_font() {
      echo '<link href="https://fonts.googleapis.com/css?family=Montserrat:500,600" rel="stylesheet"> '; 
    }

    Hope this helps.

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