Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Google Fonts SSL Issue
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Google Fonts SSL Issue
- This topic has 22 replies, 4 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
March 22, 2014 at 3:44 am #59819
Ok so my browse states Insecure Content due to the Google Fonts. But from what I have seen the Theme Function code is already relative & should be call google fonts over SSL (not sure?). Can anyone tell me how to resolve.
Here is Console Error:
'http://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700':
Here is the Google Font Loader Code.
<!--// GOOGLE FONT LOADER //--> <script> var html = document.getElementsByTagName('html')[0]; html.className += ' wf-loading'; setTimeout(function() { html.className = html.className.replace(' wf-loading', ''); }, 3000); WebFontConfig = { google: { families: [<?php echo $custom_fonts; ?> 'Vidaloka'] } }; (function() { document.getElementsByTagName("html")[0].setAttribute("class","wf-loading") // NEEDED to push the wf-loading class to your head document.getElementsByTagName("html")[0].setAttribute("className","wf-loading") // for IE… var wf = document.createElement('script'); wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; wf.type = 'text/javascript'; wf.async = 'false'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wf, s); })(); </script>
March 22, 2014 at 1:55 pm #59872Hi,
Google code automatically take care SSL . In google code ,there is statement to adopt it
`wf.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’) +
‘://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js’; `So may i know that what your actual problem with google fonts now ?
With Best Regards
Swift IdeasMarch 22, 2014 at 11:49 pm #59922Hey Mate.
Well the issue is on the checkout page the Java Console states google fonts are not being loaded over https. Console Error Below:
[blocked] The page at 'https://domain.com.au/checkout/' was loaded over HTTPS, but ran insecure content from 'http://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700': this content should also be loaded over HTTPS.
So I shouldn’t be getting this insecure notice should I.. as the wf.src should be loading it via https know?
March 24, 2014 at 10:15 am #60199Hi,
Please provide website URL so i can debug and give a quick solution .With Best Regards
Swift IdeasMarch 24, 2014 at 5:15 pm #60407Hey Mate.
Link Below:
wildernessaffiliated.com.au(Obliviously you will need a item in cart to view the checkout page referring to)
March 24, 2014 at 6:25 pm #60435The URL should be ‘https://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700′:
March 25, 2014 at 3:34 am #60512Hi,
Please provide wordpress admin login detail so i can debug it to resolve very soon .
Thanks 🙂
With Best Regards
Swift IdeasMarch 25, 2014 at 3:39 am #60513This reply has been marked as private.March 25, 2014 at 3:46 am #60514Hi,
I need full permission in wordpress admin .
ThanksMarch 25, 2014 at 3:47 am #60515This reply has been marked as private.March 25, 2014 at 1:08 pm #60776@Nerdski – are you sure that the call isn’t coming from Revolution Slider?
– Ed
March 25, 2014 at 8:57 pm #60961Hey Ed.
I am not sure, It may, I am not a developer so my debugging skills are not up there. By anychance do you know where I can check this out?
Cheers
March 26, 2014 at 12:40 am #60985Sorry, didn’t see that it was on the checkout page.
Can’t see this being an issue with the theme, as the issue shows even when font options are set to default.
Do you have this plugin setup – https://wordpress.org/plugins/wordpress-https/ ?
– Ed
March 26, 2014 at 12:50 am #60987Hey Mate.
Yeh, I have that installed. But still get Java Console Notice.
Any other suggestions what fonts code is not calling https fonts?Cheers
March 26, 2014 at 12:52 am #60991Well, the font code is coming from the theme, but the requests are all setup correctly as https. Don’t suppose you have any caching set on the site?
– Ed
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.