Unsecure loading of Google Fonts
-
Hi Nirmal,
In wpmenu.css, there is an import statement to load Open Sans from Google Fonts. This statement uses HTTP as the protocol, which loads an unsecure resource on secure sites.
1. A better way to load Google Fonts is by using wp_enqueue_script, because it allows for various optimisations. Since you already enqueue your own style sheet, that should be no problem
2. To avoid creating the security issue, use a protocol-relative URL, i.e. ‘//fonts.googleapis.com’, which will “inherit” the protocol from the containing page
Best regards,
Gal
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Unsecure loading of Google Fonts’ is closed to new replies.