Mixed content errors loading google fonts

This topic has 4 replies, 3 voices, and was last updated 6 years, 9 months ago ago by Laranz

  • Avatar: Shapepress
    Shapepress
    Participant
    July 4, 2017 at 10:02

    Dear support,

    as a lot of other users, we get several mixed content errors if the theme tries to load fonts from google fonts and the page is accessed via https. This is technically totally clear to us. But we do not want to alter the original theme files cos this will break on updates.

    Why not load google fonts default via https? Or at least make the relevant shortcode functions overwritable by wrapping them in a function_exists block?

    Thank you for your support.

    Regards

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 5, 2017 at 10:08

    Hello,

    Thank you for the notice.
    Not all of our users use https. I’ve sent your report to our developers. They will add function_exists in a new theme update.

    Regards,
    Rose Tyler.

    Avatar: Shapepress
    Shapepress
    Participant
    July 5, 2017 at 11:35

    Hello,

    thanks a lot, we will update our installation as soon as the update is published.

    Regards

    Avatar: laranz
    Laranz
    Participant
    July 5, 2017 at 11:38

    Hi,

    For now, you can directly edit this file, /wp-content/themes/legenda/framework/shortcodes.php line #1896 from

    
    <link rel='stylesheet'  href='http://fonts.googleapis.com/css?family=<?php echo $google_name; ?>' type='text/css' media='all' />

    to

    
    <link rel='stylesheet'  href='//fonts.googleapis.com/css?family=<?php echo $google_name; ?>' type='text/css' media='all' />

    It will temporarily fix the issue, until we fix that in the next version. 🙂

    Let us know,

    Thanks,
    laranz.

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

You must be logged in to reply to this topic.Log in/Sign up

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