Active
Project:
Best Responsive
Version:
7.x-1.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2013 at 07:38 UTC
Updated:
29 Apr 2013 at 19:40 UTC
Chrome reports the following in its console:
[blocked] The page ran insecure content from http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,700....
Error is caused by import of a google font via insecure protocol in style.css of the theme:
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,700...);
Comments
Comment #1
lastar84 commentedFor secure websites, my understanding is that the fonts need to be imported in the HTML and not in the CSS, and that simply removing the "http" prefix and starting the URL with // will automatically allow the correct (secure/nonsecure) version to import.
I have not tested this.
Comment #2
lastar84 commentedThis page demonstrates calling an external stylesheet through template.php -- look under the subheading "Adding external stylesheets." http://drupal.org/node/171209
The example they show is for Google fonts, interestingly enough.
However, as mentioned before, I think the "http:" prefix needs to be removed from that URL in order to avoid the Chrome warning. And again, I have not tested it.