Google font HTTPS issue

Posted in: Newspaper
Post count: 2

Hi there,

We’ve got an issue where Google fonts are being loaded over HTTP, I’m fairly sure that this is no longer allowed by Google and is now blocked, therefore fonts are no longer loaded.

Error message:
Font from origin ‘http://fonts.gstatic.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin [host] is therefore not allowed access.

By changing line 3887 & 3891 of wp-content/themes/Newspaper/includes/td_config.php and hardcoding ‘HTTPS’ instead of Newspaper’s $td_http_or_https variable and hardcoding ‘HTTPS’ in line 297 of includes/wp_booster/td_wp_booster_functions.php it resolves this issue.

My suggestion: isn’t it best practice to load external fonts etc over https anyway? if so, is it possible that maybe those three lines are changes so that it forces https for google font loading?

If not: how do you think we make these changes upgrade safe? is there a possible way?

Post count: 22421

Hello,

We had no reports of this yet as the method we used on both http and https allows for both loading methods but if this is the case and google can no longer provide the fonts with this method, we will fix it in a future version. if your method works fine, use it and I will add this on our list for further investigation and if we find that it needs fixing it will most definitely get done.
As for the update, unfortunately there is no update proof method of modifying the theme files.

Thank you for your message!

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