Support » Plugin: AMP for WP - Accelerated Mobile Pages » “The attribute ‘href’ in tag ‘link rel= ..” – How do I remove the stylesheet?

  • Resolved melvincodes

    (@melvincodes)


    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 5 years, 11 months ago by melvincodes.
    • This topic was modified 5 years, 11 months ago by melvincodes.
    • This topic was modified 5 years, 11 months ago by melvincodes.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“The attribute ‘href’ in tag ‘link rel= ..” – How do I remove the stylesheet?’ is closed to new replies.