“The attribute ‘href’ in tag ‘link rel= ..” – How do I remove the stylesheet?
-
Google Search Console is giving me the following error
The attribute 'href' in tag 'link rel=stylesheet for fonts' is set to the invalid value 'https://delatercommunicatie.nl/wp-content/cache/minify/0/1d9af.default.include.01e449.css'.
This must be referring to the piece of code in my Head, according to https://www.ampproject.org/docs/fundamentals/converting/resolving-errors. I have found the external stylesheet to be on top of the <head>.
<link rel="stylesheet" type="text/css" href="https://delatercommunicatie.nl/wp-content/cache/minify/0/1d9af.default.include.01e449.css" media="all">
Now this stylesheet must be removed from my head, but only on the AMP pages. I have no idea how I could approach this issue and I couldn’t find the solution on the forums or on Google. Could you guys point me into the right direction? Will I need hooks for resolving this issue?
- This topic was modified 6 years, 7 months ago by .
- This topic was modified 6 years, 7 months ago by .
- This topic was modified 6 years, 7 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘“The attribute ‘href’ in tag ‘link rel= ..” – How do I remove the stylesheet?’ is closed to new replies.