• I have no clue where this font is coming from, but we have our site behind https:// so our error is throwing up a mixed content error. We need to serve the font from google from https:// instead

    Error:
    Blocked loading mixed active content “https://fonts.googleapis.com/css?family=Open+Sans:700”

    I do not have this font in any of my style sheets and can’t find where its being loaded from. Need to change the call for it to https:// or just //fonts.googleapis.com (without the https:// or https://)

    how do we got about fixing this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Might look in your theme’s functions.php. I found this in Twenty Twelve:

    $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );

    If you don’t really need the Google Fonts, can use the Disable Google Fonts plugin: https://www.ads-software.com/plugins/disable-google-fonts/ but it may only work with the bundle themes.

    Anyway, may need to look in your PHP files as well as the CSS files for references.

    Thread Starter Dani-Girl

    (@dani-girl)

    Using custom theme so no fonts from google are being loaded. The Open Sans font is coming from WordPress Core and we need to change it so its served over https// . How its been coded into WordPress is that its being served over http

    Well, I did a global text search for “fonts.google” and all references were either https:// or //fonts in my files.

    So, if this were me, I’d do a global text search for “fonts.google” in all of your blog’s PHP and CSS files using a code editor.

    I deactivated my Disable Google Fonts plugin and reloaded blog and all the fonts.google references loading use https. Used my browsers network monitor to determine what was loading and from where.

    So, to me it seems the core 4.3 files do not load Google fonts using https://. Your theme or one of your plugins is.

    Thread Starter Dani-Girl

    (@dani-girl)

    checked all plugins. the theme I’m using (which I created) doesn’t use google fonts.

    checked plugins, none of them pull google fonts (only using two plugins)

    its coming from WordPress.

    What’s the site’s URL?

    Thread Starter Dani-Girl

    (@dani-girl)

    Its a closed site, so no access unless you are on approved IP.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Open Sans from Google Fonts = mixed Content blocked’ is closed to new replies.