-
AuthorPosts
-
June 19, 2020 at 9:39 pm #1224174
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
June 20, 2020 at 7:26 am #1224241Hey 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,
RikardJune 21, 2020 at 5:45 pm #1224419This reply has been marked as private.June 21, 2020 at 6:04 pm #1224420This reply has been marked as private.June 22, 2020 at 6:28 am #1224481Hi,
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,
RikardJuly 27, 2020 at 3:39 am #1233414Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.
