Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #1224241

    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

    #1224419
    This reply has been marked as private.
    #1224420
    This reply has been marked as private.
    #1224481

    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

    #1233414

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.