Tassilo
asked 7 years ago

I have the timeline pro theme. Problem is, that I have a https side and the theme loads fonts from http://fonts.googleapis.com instead of https://fonts.googleapis.com.
This gives me a mixed content error. Can you fix it?

1 Answers
DominicStaff
answered 7 years ago

Find the link for 'http://fonts.googleapis.com/css?family=Oswald:300,400,700 in your theme’s  CSS file and do one of two things:
1) add an s to http, and Google will serve the font via https
or
2), remove the http: to make the link protocol agnostic, i.e. //fonts.googleapis.com/css?family=Oswald:300,400,700 This is the best method for compatibility in all cases.
Either way, that will solve the mixed content errors.

Tassilo
replied 7 years ago

Doesnt work; in my functions.php in the theme folder, there is no link

Tassilo
replied 7 years ago

Please look at the theme. I just re-downloaded it and there is no such link in the functions file

Dominic Staff
replied 7 years ago

I have helped you change the google font link, you can download the files in here: https://www.dropbox.com/s/sei04kzosb1d2rd/css%26less.zip?dl=0
After downloading into your computer, you can unzip this file and you will get 3 file.zip then unzip each file and override the files into the folder path that I have used for the file name.
If you still face their issue, you can send me username & password of your site, I will help you resolve it.

Tassilo
replied 7 years ago

Thank you for your efforts. I replaced the three files, but it didn’t work. This is the name of my site: http://www.tassilo-schwarz.com. Maybe you can inspect it yourself; I still get the twice the mixed content error.

Tassilo
replied 7 years ago

__

Tassilo
replied 7 years ago

The file general.php in dw-timeline-pro\framework\helpers contains l. 1034: “$response = wp_remote_get( apply_filters( ‘fw_googleapis_webfonts_url’, ‘http://google-webfonts-cache.unyson.io/v1/webfonts’ ) );”
My this be a problem? The url only works for http; not for https

Dominic Staff
replied 7 years ago

You can change to https:// .
I have checked and see that it works fine. Please let me know if you still face their issue.

Tassilo
replied 7 years ago

Everything works now. Thank you!

Dominic Staff
replied 7 years ago

My pleasure! Please let me know if you have any issue or questions, I will help you solve it as soon as possible.

Powered by DW Question & Answer Pro