Google Fonts and Weights

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27335
    Ann Zumwinkle
    Participant

    Hi, we’re having trouble getting all of the font-weights to work in the theme. We are using Montserrat in all three drop down form fields in the Theme Options, but only seem to be able to get up to weight 600. We need 700, 800, 900. Can you tell us how to add these in?

    #27362
    Ann Zumwinkle
    Participant

    I presume you mean a BBCode plugin. I forgot to mention that the spot we need the bold weights the most in in our navigation. BBCode won’t work there, will it?

    #27363
    Ann Zumwinkle
    Participant

    Apologies regarding BBCode. For some reason, I thought it was your reply….

    #27378
    Raghavendra
    Moderator

    Not sure if this is a defect on Google Fonts side since we use the standard embed code recommended by Google to load the fonts. We use CSS to load the fonts and even if we do an explicit load of font weight with this –

    @import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700,800,900');

    the weights are NOT taking effect.

    At present, only one thing seems to work – editing header.php file (override the same in your child theme by creating a file named header.php with the same content as that of parent) and adding this line –

    <link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700,800,900" rel="stylesheet">

    to line number 29 of this file.

    #27385
    Ann Zumwinkle
    Participant

    Thanks for your reply. An associate of ours just sent us the CSS option right about the same time as your reply, and it does seems to work. We were aware of the header file option, but were hoping for a cleaner fix. Thanks again for your help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Invent Theme Support’ is closed to new topics and replies.