Font loading with http error message in javascript console

This topic has 6 replies, 2 voices, and was last updated 9 years ago ago by Jack Richardson

  • Avatar: emeliech
    emeliech
    Participant
    November 13, 2015 at 19:17

    Hello,

    I get an error message in javascript console and I cant figure out how to fix it.

    http://www.ringsofsweden.com

    Mixed Content: The page at ‘https://www.ringsofsweden.com/’ was loaded over HTTPS, but requested an insecure stylesheet ‘http://fonts.googleapis.com/css?family=Lato%3A300%2C400%2C700%2C300italic&ver=bb33754b0336072a8565af01bce314cb’. This request has been blocked; the content must be served over HTTPS.

    What should I do?

    Thank you!

    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 14, 2015 at 08:47

    Hello,

    Please edit the file wp-content/themes/royal/framework/shortcodes.php in line 2364 and change the link http://fonts.googleapis.com/css?family to https.

    Best regards,
    Jack Richardson.

    Avatar: emeliech
    emeliech
    Participant
    November 14, 2015 at 10:30

    Hello,

    I edited the file but i still get the error. any other ideas?

    thanks!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 16, 2015 at 17:52

    Hello,

    I’ve changed the code in wp-content/themes/royal/framework/theme-functions.php in line 722
    wp_enqueue_style("font-lato","http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic");
    to
    wp_enqueue_style("font-lato","//fonts.googleapis.com/css?family=Lato:300,400,700,300italic");

    Please clear browser cache and check the site.

    Best regards,
    Jack Richardson.

    Avatar: emeliech
    emeliech
    Participant
    November 17, 2015 at 16:36

    GREAT!

    That did the trick!

    Thank you for the help

    Best regards

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 17, 2015 at 20:05

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘font loading with http error message in javascript console’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.