https and google fonts
URL to the page in question:
https://beepou.com
-
Hi Bill,
Is it possible to use https to load google fonts with Elite?
It seems that using http for the fonts is causing mixed content errors.
Best regards,
Hi Alberto,
You can do that. Here’s how:
- Go to the Appearance section in your WordPress dashboard and choose Edit.
- From the list of files on your right, choose fonts.php.
- Scroll down to the bottom and you’ll see this line:
wp_enqueue_style( "options_typography_$font", "http://fonts.googleapis.com/css?family=$font", false, null, 'all' );
Change it to this:
wp_enqueue_style( "options_typography_$font", "//fonts.googleapis.com/css?family=$font", false, null, 'all' );
- Save your changes.
That should do it.
Have a great week,
Bill
- The topic ‘https and google fonts’ is closed to new replies.