• Hey folks,

    See my short explanation here:
    https://www.screencast.com/t/lPpFl3ASC5

    In passes here for using this:
    <body>If you want to load the normal full site/page version for mobile devices, you must scroll to the very bottom of the page and click the View Non-AMP Version.</body>

    But…Google Search Console sees it as invalid along with <style amp-custom pointing to bad code in the head. Sure enough, if I remove that it works and is valid with google search console. I got this info here and this is it https://github.com/ampproject/amphtml/issues/3907

    So, what code wrap can I put in the html header in your plugin to add simple text that will pass google search console as valid?

    ??

    [ No bumping please. ]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor ampforwp

    (@ampforwp)

    Hey @birdog123,

    I really apologize for the delay in response.

    I have created a ticket about it in our Github(ref)

    It will be added in our next update. With the help of it, you can add text in the header.

    If you want I can give you the code and instructions, then you can add it in the plugin and can achieve your goal.

    Regards
    Marqas

    Thread Starter birdog123

    (@birdog123)

    @ampforwp

    Thanks.

    Yea. If you could send the code and instructions that would be great. Then, when the plugin updates it will automatically fix it and not over write correct? The only issue I would see is if I do it and add text in the html header and then for some reason the next update does not have that fix in it then it could break all the amp search console valid links?

    Thoughts?

    I know sometimes you intend to put out a fix or feature in the next update and sometimes, though, it does not make it in the immediate next update.

    Let me know what you think.

    ??

    Greg

    Thread Starter birdog123

    (@birdog123)

    @ampforwp

    Was this fixed in the most recent update?

    If so, how do I use it now?

    If not…below is a resend from the last post…if the fix is not applied that is…smile:

    @ampforwp

    Thanks.

    Yea. If you could send the code and instructions that would be great. Then, when the plugin updates it will automatically fix it and not over write correct? The only issue I would see is if I do it and add text in the html header and then for some reason the next update does not have that fix in it then it could break all the amp search console valid links?

    Thoughts?

    I know sometimes you intend to put out a fix or feature in the next update and sometimes, though, it does not make it in the immediate next update.

    Let me know what you think.

    ??

    Greg

    Plugin Contributor ampforwp

    (@ampforwp)

    Hey @birdog123,

    I apologize for the delay in response. We were on Eid Holidays, that’s why unable to communicate well with our users.

    We are back now, and I will write a tutorial about it to help you with this.

    Regards
    Marqas

    Thread Starter birdog123

    (@birdog123)

    @ampforwp

    Just seeing if you have a tutorial (or close to having) on this?

    ??

    Greg

    Plugin Contributor ampforwp

    (@ampforwp)

    Hey @birdog123,

    You can achieve this with the help of this tutorial: https://ampforwp.com/tutorials/add-view-non-amp-things-header/

    Let me know if you have any more questions.

    Regards
    Marqas

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘text in the html header in the plugin passes test but not …’ is closed to new replies.