• Resolved felfert

    (@felfert)


    Hi,

    Thanks for this nice theme.
    Unfortunately, there is a small glitch in style.css. It uses hardcoded protocol for importing from fonts.googleapis.com. This works on an unencrypted site. If you are running a secure site (like me) however, this triggers a “mixed-content” security warning in the browser and the browser blocks loading the fonts. The following patch fixes this:

    diff -uw ./wp-content/themes/lifestyle/style.css.orig ./wp-content/themes/lifestyle/style.css
    --- ./wp-content/themes/lifestyle/style.css.orig        2015-10-01 01:10:12.473945441 +0200
    +++ ./wp-content/themes/lifestyle/style.css     2015-10-01 01:05:36.276360674 +0200
    @@ -15,8 +15,8 @@
    
     */
    
    -@import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400);
    -@import url(http://fonts.googleapis.com/css?family=Satisfy);
    +@import url(//fonts.googleapis.com/css?family=Open+Sans:300,400);
    +@import url(//fonts.googleapis.com/css?family=Satisfy);
    
     /* Baseline Reset (normalize.css 2.1.2)
            Link: http://necolas.github.com/normalize.css/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘[PATCH] Use protocol-relative URLs in css’ is closed to new replies.