• Resolved n0tr3levant

    (@n0tr3levant)


    Hi,

    I am having trouble with my browsers blocking the loading of mixed active content. My theme is a child-theme based of another theme called Grow. This theme use a Google Font called Raleway, and when loading the website the font is not loaded and I get an error in the browser console.

    In the parent theme functions, it enqueues the google font which then results as the html below:

    <link rel='stylesheet' id='thinkup-google-fonts-css' href='//fonts.googleapis.com/css?family=Raleway%3A300%2C400%2C600%2C700&subset=latin%2Clatin-ext' type='text/css' media='all' />

    From what I’ve read, WordPress should automatically choose between HTTP and HTTPS based on what is needed. Nevertheless it won’t.

    I’ve tried forcing https:// instead of the // in the parent functions, but to no avail.
    Also I have tried enqueuing the font again in my child theme functions, overwriting the old one forcing it to become HTTPS.

    Even though I clearly read in the page source that the link is indeed HTTPS, I still get the same error from both Chrome and FF.

    Blocked loading mixed active content “https://fonts.googleapis.com/css?family=Raleway”

    I am wondering, why does my browsers say that they refuse to load https:// when the source itself says https://? There is not a single thing in the source linking to the normal http protocol.

    I’ve tried everything that I can think of, everything posted in random threads about the same issue but nothing seems to work.

    Anyone got any ideas?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blocked Mixed Content with Google Fonts’ is closed to new replies.