Home Forums WoodMart support forum Google Font Not Working

Google Font Not Working

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #208253

    Frozen
    Participant

    I have found that if I select the Google Font Baloo Thambi 2 the generated font-family is incorrect.

    Whats generated is

    font-family: Baloo Thambi 2, Arial, Helvetica, sans-serif but this is invalid

    What it needs to be is

    font-family: "Baloo Thambi 2", Arial, Helvetica, sans-serif

    Is there any way to fix this?

    Thanks,

    James

    #208315

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #210840

    Frozen
    Participant

    Here you go.

    Anything else please let me know.

    #211014

    Artem Temos
    Keymaster

    Hi,

    Try to edit the file woodmart\inc\options\controls\typography\class-typography.php and add the following line like on screenshot http://prntscr.com/ti109m

    return $rule . ': "' . $rules_array[ $rule ] . '"' . $suffix . ';';

    Regards

    #211281

    Frozen
    Participant

    Thanks for looking into this and the suggested change. While it fixed the font issue, but broke the other rules

    .product-image-summary-wrap .entry-title {
        font-family: "Baloo Thambi 2", Arial, Helvetica, sans-serif;
        font-weight: "500";
        font-size: "48"px;
    }

    So the font-weight and font-size are no longer valid.

    Thanks

    James

    #211283

    Artem Temos
    Keymaster

    Please, send us a screenshot where you placed the code. Be sure that you did exactly as we wrote to you.

    #211325

    Frozen
    Participant

    Yes, sorry my mistake, I replaced the existing line rather than adding the new one.

    Its now working correctly!

    Many thanks

    James

    #211470

    Artem Temos
    Keymaster

    Great, you are welcome!

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Google Font Not Working’ is closed to new replies.