Google fonts parsing error in stylesheet.php

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
GillianBPP
Joomla! Explorer
Joomla! Explorer
Posts: 396
Joined: Wed Oct 01, 2014 10:25 am

Google fonts parsing error in stylesheet.php

Post by GillianBPP » Wed Jan 03, 2018 5:32 pm

Sorry if this isn't the right board, but...

I am evaluating Watchful.li and whilst running an SEO Audit on my site I have a message under W3C Validation that my code for a Google font has a parsing error. I can't work out what it is.

My site is running html5 and the code for the font is in my stylesheet.php like this:

Code: Select all

<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,300" rel="stylesheet">
I've also tried it like this:

Code: Select all

<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet'>
i.e. with single quotes

I removed the closing / as this is not required for html5

I have also tried it with a space before the closing > and, separately, without the leading https:

But nothing seems to make any difference.

I am stumped. :(

I know it's only classed as 'Info' rather than a warning or an error, but it's annoying to have something wrong that I can't fix. Can anyone help, please?

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Google fonts parsing error in stylesheet.php

Post by brian » Wed Jan 03, 2018 10:38 pm

Code: Select all

<link href='//fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”