25 posts
  • 3 Years of Membership
  • Collector Level 2
  • Exclusive Author
  • United States
BeverlyCrest
says

I want to bring something up since I bought several WP themes here on TF. The most of them use google fonts and maps and I always have to change the google urls from http to https since I am using ssl certificates for the most pages and the browsers are notifying the visitors that the connection is just partially encrypted.

So dear developer please use https instead of http for loading google fonts and goole map elements into your templates. Thanks.

709 posts
  • Affiliate Level 2
  • Author Level 5
  • Beta Tester
  • Collector Level 2
+2 more
ChillThemes
says

Perhaps authors using Google Fonts should enqueue them this way:

$protocol = is_ssl() ? 'https' : 'http'; 
wp_enqueue_style( 'google-fonts', "$protocol://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" );
1845 posts LoveThemes
  • Elite Author
  • Author Level 7
  • Exclusive Author
  • Trendsetter
+10 more
LoveThemes
says

Or just use protocol relative URL’s, //fonts.googleapis.com/css?family=Open+Sans

416 posts
  • Affiliate Level 4
  • Author Level 3
  • Collector Level 3
  • 4 Years of Membership
+2 more
mitdralla
says

Or just use protocol relative URL’s, //fonts.googleapis.com/css?family=Open+Sans

+1

by
by
by
by
by
by