Can't get Google Fonts to work.


I'm having a problem with google fonts. I made a custom theme and tried to apply google fonts in the CSS section of customization and I have tried both @import and link href but neither of them works. I also added the rule correctly, I believe.

Is there any other way to use google fonts or am I missing something here?

View Replies:
ronyDdeveloper replied on at Permalink Reply
Can you share the URL where I can look at?
stewblack23 replied on at Permalink Reply
Need a URL to see what the issue is. I use Google Fonts on all my custom C5 themes and have no issue.
pixelhero replied on at Permalink Reply
You will need to actually specify the 'font-family' attribute in your CSS so that the body knows to use that font. You can't simply paste the import/link in.

Also, the 'link' version needs to go in your page header, not a CSS section of the theme you have - it will be just for CSS rules.

Try using the @import one and follow it by:
body {font-family:'FontName';}

Replace FontName with the name of the font it tells you in Google Fonts under the import line you copied