Danilo B
asked 10 years ago

With SSL/TLS enabled, the google webfonts are still loaded via http. In browsers like Chrome, that blocks the loading of the unsafe resources.

The solution would be to load the webfonts using

 url(//fonts.googleapis.com...

instead of 

 url(http://fonts.googleapis.com...

.

Would be great if that could get fixed.

David Elisma
replied 10 years ago

My template DW-Argo have the same issue :
Warning: Invalid argument supplied for foreach() in /wp-content/themes/dw-argo1.0.4/inc/theme-customization.php on line 258
Where it seems that the loop for loading the fonts into an array doesn’t work as intended

2 Answers
Danilo B
answered 10 years ago

Alternatively, use https everywhere. Probably even better than the `//` approach.

DominicStaff
answered 10 years ago

Thanks you for your suggestion, yes we can fix it on our theme soon.

And with DW Minion theme, if you want to use Google Fonts under both SSL and non-SSL, you can locate to “dw-minion/assets/css/main.css” and change the inport Google Fonts
from: @import url(http://fonts.googleapis.com/..
to: @import url(//fonts.googleapis.com/..

This change will make the browsers call the Google Fonts in the applicable mode (HTTP vs HTTPS).

Powered by DW Question & Answer Pro