Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey Roni,

    You will need to find the file that calls the Google fonts file and remove the http portion from it. For example:
    function mytheme_enqueue_styles() {wp_register_style('googleFonts', 'http://fonts.googleapis.com/css?family=Copse');wp_enqueue_style( 'googleFonts');}

    becomesfunction mytheme_enqueue_styles() {wp_register_style('googleFonts', '//fonts.googleapis.com/css?family=Copse');wp_enqueue_style( 'googleFonts');}

    Source article: https://wptavern.com/wordpress-tip-how-to-load-google-fonts-over-ssl-and-non-ssl

    • This reply was modified 9 years, 7 months ago by ScottyMitch.

    Links to Google Fonts can typicaly be in theme files; so look in your theme files, such as index.php and functions.php.

    Thread Starter ronidaya

    (@ronidaya)

    Thank you very much for your suggestions Scotty and Mark. I really appreciate it. I looked through my theme files but still didn’t manage to locate the file that calls the Google fonts file. I use the plug in Easy Google Fonts. Shall I deactivate it and insert the code of the article into my functions.php file and use that to call up my google fonts? And if I do that I would rather change it in my Child theme. Does the code stay the same or do I need to add anything? Thanks a lot.

    • This reply was modified 9 years, 7 months ago by ronidaya.

    Deactivate the plugin and see if you still get the insecure element errors. If so, find another plugin; or mnanually enqueue the fonts in functions.php in the child theme.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘htttp link to https’ is closed to new replies.