We have added a custom font to our website. Later, the site was changed from being served on HTTP over to SSL version. Now we get an error:
Mixed Content: The page at ‘https://server/’ was loaded over HTTPS, but requested an insecure font ‘http://server/wp-content/uploads/avia_fonts/type_fonts/old-standard-tt/oldstandardtt-bold.ttf’. This request has been blocked; the content must be served over HTTPS.
We have tried to manually update the CSS files in ./wp-content/uploads/* and it worked untill we have made a simple CSS change at the theme level. Somehow the font URL go changed to http://
Is there something that we could correct in the database?
Thanks
Hey Courtney,
Thanks for the login details. What happens if you activate the option to delete the old CSS and JS files under Enfold->Performance?
Best regards,
Rikard
Hi,
Thanks for the update. I can’t see any missing styling on my end though, could you post a screenshot highlighting the problem please?
Best regards,
Rikard
Hi,
Sorry for the late reply and thank you for the login, I took a look at your site and found that you had many insecure font warnings for a Google Font, I added this meta tag to your header and the url’s were changed to https and are now secure.
This is the code I added to the end of your functions.php file in Appearance > Editor:
function add_custom_meta(){
?>
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<?php
}
add_action('wp_head', 'add_custom_meta', 1);
Please clear your browser cache and check.
Best regards,
Mike