w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
only secure content is displayed after adding google font api

This happens because the CDN links for the fonts are not secure, when the browser is expecting them to be. Just change the "http" to "https" so that it looks like this:

<link href='https://fonts.googleapis.com/css?family=Oswald'
rel='stylesheet'    type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed'
rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto'
rel='stylesheet' type='text/css'>

Edit: While you're at it, you should make just one request for the fonts, by putting all the requests into one URL.

rel='stylesheet' type='text/css'>

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.