Google Fonts Trying to Load from Local Server

Posted in: Newspaper
Post count: 39

I’ve followed the documentation for using Google Fonts. When I look at the source, the Google Font <link> tags are relative (see below), which is causing 404s because they’re not on my server.

Any idea what is causing this?

<link rel="stylesheet" id="google-fonts-style-css" href="/css?family=Patua+One%3A400%2C700%7CUbuntu%3A400%2C700%7COswald%3A400%2C700&subset=latin%2Clatin-ext&ver=3.8.1" type="text/css" media="all">

Post count: 6600

Hi,

All google fonts are loaded from Google server. http://screencast.com/t/P4tQcezn7

DO you use custom fonts? If you want google font you only need to select the font from Theme panel -> Custom typography they are already listed there: http://screencast.com/t/Cm3FajFKhKTi

Thanks

Post count: 39

Hi Thanks Lucian. I’ve selected the Google fonts from Theme panel -> Custom typography as described in this documentation: https://forum.tagdiv.com/how-to-use-custom-fonts/. I’m not using custom fonts.

For some reason the theme isn’t generating the full url in the <link> tags; it is truncating them to just the relative urls. So instead of <link href=’http://fonts.googleapis.com/css?family=Oswald’&gt;, it is producing <link href=’/css?family=Oswald’>.

Is there a setting somewhere that we may have set that would cause this to happen? What theme file(s) generate these links?

Thanks!

Post count: 6600

Hi,

Somethings cropping you URL there, default the theme is with http://fonts.googleapis.com/css?.. can you disable all plugins or one by one and see if works? could be a conflict with one of them.

Also can you give us your site URL to see the issue?

Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.