• Resolved iqdigest

    (@iqdigest)


    The attribute ‘href’ in tag ‘link rel=stylesheet for fonts’ is set to the invalid value ‘https://fonts.googleapis.com/css’.

    i have set amp only for posts, everythings seems to work good but there’s an issue and i think thats the reason for Not a valid AMP page status.

    bellow is the code that is invalid, the href is the problem.
    <link rel=’stylesheet’ id=’amp-wp-google-fonts-css’ href=’https://fonts.googleapis.com/css&#8217; type=’text/css’ media=’all’ />

    any ideas how to fix this?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mohsin Rafique

    (@mohsinrafique)

    Hi @iqdigest,

    We have no such issue on our demo site.

    Some other plugin is stripping out google fonts. Can you please write down which plugins you’re using.

    Thanks,

    Thread Starter iqdigest

    (@iqdigest)

    Ajax Load More – Version 5.0.1
    AMP WP – Version 1.4.3.1
    Classic Editor – Version 1.4
    Genesis Simple Hooks – Version 2.2.1
    Heartbeat Control – Version 1.2.5
    WP Rocket – Version 3.2.6
    Yoast SEO Premium – Version 10.0.1

    Thread Starter iqdigest

    (@iqdigest)

    you dont have that issue on your demo because you don’t have the same Link,

    this is your link for fonts on demo,
    <link rel=”stylesheet” id=”amp-wp-google-fonts-css” href=”https://fonts.googleapis.com/css?family=Karla%7CNoto+Sans%3A700%7COverpass+Mono&#8221; type=”text/css” media=”all”>

    and this one is mine,
    <link rel=’stylesheet’ id=’amp-wp-google-fonts-css’ href=’https://fonts.googleapis.com/css’ type=’text/css’ media=’all’ />,

    i would like to use roboto, but how do i change the code from the plugin for font? can i change it from the plugin file directory?

    Thread Starter iqdigest

    (@iqdigest)

    i have modified the code for the font in the plugin directory, now i don’t have any errors, so i guess when there’s an update i will have to modify it again if there’s an error again?

    Plugin Author Mohsin Rafique

    (@mohsinrafique)

    HI @iqdigest,

    In our next release, we will give option to modify the font family for body content & headings.

    Thanks,

    Plugin Author Mohsin Rafique

    (@mohsinrafique)

    Hi @iqdigest,

    It seems that you’re not using our plugin anymore. So i am closing this thread.

    Thanks,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Validation issues’ is closed to new replies.