Tagged: google font, https
-
AuthorPosts
-
August 22, 2018 at 1:37 pm #1000308
HI, An SEO company is reviewing my site, and are coming up with an SLL error for my google font which looks like this (sample page but I think it’s the whole site):
Hard Failure A file with an insecure url of “http://fonts.googleapis.com/css?family=Oswald:400,700,300” was loaded on line: 189 of https://www.andesworldtravel.com/our-guides/.
This URL will need to be updated to use a secure URL for your padlock to return.I am using google font manager, but also had this code in my child theme functions.php:
function add_oswald_script(){ ?> <link href="http://fonts.googleapis.com/css?family=Oswald:400,500,600" rel="stylesheet"> <?php } add_action('wp_head', 'add_oswald_script');
I updated that url to be “https://fonts.googleapis.com/css?family=Oswald:400,500,600” but am still getting the error. I also get it if I comment out that script. Can you help me with this? Should I still be using the Google Font Manager plugin or just this script or is there another way of getting that font?
thanks for your help
NancyAugust 22, 2018 at 2:55 pm #1000371Hey Munford,
Try using the link like this
<link href="//fonts.googleapis.com/css?family=Oswald:400,500,600" rel="stylesheet">
If you need further assistance please let us know.
Best regards,
VictoriaAugust 22, 2018 at 3:25 pm #1000397should that go in the functions.php just like that?
August 23, 2018 at 2:05 pm #1000733Hi Munford,
No, the whole thing you have there before:
function add_oswald_script(){ ?> <link href="//fonts.googleapis.com/css?family=Oswald:400,500,600" rel="stylesheet"> <?php } add_action('wp_head', 'add_oswald_script')
If you need further assistance please let us know.
Best regards,
VictoriaAugust 23, 2018 at 3:22 pm #1000789UPDATE this was supposed to be on another thread, sorry
ok – I will try that
can you look at the problem I am having with the tag links – they are not working correctly.
thanks
Nancy- This reply was modified 6 years, 3 months ago by Munford.
August 25, 2018 at 9:59 am #1001537Hi Nancy,
Can you please explain what do you mean they are not working correctly?
Best regards,
VictoriaAugust 25, 2018 at 11:06 am #1001570Hi Victoria – sorry I think that was in response to another thread you are on with me: https://kriesi.at/support/topic/portfolio-tags-styling-links/#post-1000071
The portfolio tags there are not working as they should.
You can close this thread.August 25, 2018 at 11:44 am #1001596Hi Munford,
Ok, glad we could help :)
Will try to help you there.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.