• Resolved Civil Engineering Notes

    (@civilenggnotes)


    I am using the AddThis share widget in my blog. But I could show these button in AMP pages. When I am using the default code provided by AddThis team, I am getting the following error Google’s AMP Test tool. Is this forum suitable to solve these errors?
    1. The attribute ‘responsive”‘ may not appear in tag ‘amp-addthis’.
    2. The attribute ‘height’ in tag ‘amp-addthis’ is set to the invalid value ’92 layout=’.
    These are the two errors

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    You are missing the double-quote after the height="92.

    You have:

    <amp-addthis width="320" height="92 layout="responsive" data-pub-id="ra-5bbc7d8a0c53d28f" data-widget-id="nvbr" data-widget-type="floating"></amp-addthis>

    when it should be:

    <amp-addthis width="320" height="92" layout="responsive" data-pub-id="ra-5bbc7d8a0c53d28f" data-widget-id="nvbr" data-widget-type="floating"></amp-addthis>

    Thread Starter Civil Engineering Notes

    (@civilenggnotes)

    That code was provided by the addthis team. And what about my 2nd problem?? When I am using “responsive”, the 2nd problem is showing..

    Plugin Author Pascal Birchler

    (@swissspidy)

    @civilenggnotes It looks like you haven’t fixed the code yet. If you add the missing double quote, both errors should go away.

    What you currently have on your site:

    <amp-addthis width="320" height="92 data-pub-id="ra-5bbc7d8a0c53d28f" data-widget-id="2rb1" data-widget-type="inline"></amp-addthis>

    Correct:

    <amp-addthis width="320" height="92" layout="responsive" data-pub-id="ra-5bbc7d8a0c53d28f" data-widget-id="nvbr" data-widget-type="floating"></amp-addthis>

    Thread Starter Civil Engineering Notes

    (@civilenggnotes)

    Thank you so much.. share button showing now..:)??

    Thread Starter Civil Engineering Notes

    (@civilenggnotes)

    Share button is showing. But still not validating in google amp page test tool. Showing error in the addthis code.

    Plugin Author Pascal Birchler

    (@swissspidy)

    The AMP validator now says that https://www.civilenggnotes.in/classification-of-soil-for-engineering-purpose/amp/ is valid.

    It looks like you have some caching on your site though, this might lead to some false positives. Try to clear the cache.

    Thread Starter Civil Engineering Notes

    (@civilenggnotes)

    Okk.. so what should i do now to be validated to google. When i am starting validating, same issue is showing with this page.

    Plugin Author Pascal Birchler

    (@swissspidy)

    @civilenggnotes You seem to be using Litespeed Cache on your WordPress site. Try clearing the cache before validating again, as the validator seems to still see the old/outdated version.

    Thread Starter Civil Engineering Notes

    (@civilenggnotes)

    Okk.. thanks for the support

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘AMP not Validating with addthis share widget code’ is closed to new replies.