Importing font from Google not working - need help

  • Profile Image
    I_B_L
    Asked on November 25, 2016 at 05:14 AM

    Hi,

     

    here is the CSS code:

     

    @import url('https://fonts.googleapis.com/css?family=Ek+Mukta')
    .form-all {
        font-family : 'Ek Mukta', sans-serif;
    }

    I save it but then when I try to select it from the pull down menu it doesn't show. Could you please help me on this?

    Thanks

    Sarah

  • Profile Image
    owen
    Answered on November 25, 2016 at 05:46 AM

    Hi Sarah,

    Font styles do not actually appear on a list when you apply them with these codes. It takes effect immediately. 

    Correct coding should be:

    @import url('https://fonts.googleapis.com/css?family=Ek+Mukta');

    .form-all {

        font-family : 'Ek Mukta', sans-serif;

    }

    Please note that on the code you provided ";" is missing at the end of the @import line. Please try it again and let us know how it goes. 

    Thank you for contacting us. 

  • Profile Image
    I_B_L
    Answered on November 25, 2016 at 08:44 AM
    Hi Owen,
    Thanks for the quick response!
    It worked, but not on the entire form. I had to put .form-header to
    change the header form, and I assume I'll have to do it manually for
    each field. But I did get the font, so I'm happy.
    Have a great day,
    Sarah Halberg
    ...