AMP Error – Disallowed attribute in HTML tag 'a'

Posted in: Newspaper
Post count: 10

Hi

I have noticed a few validation errors in the search console.

These appear to relate to the social sharing links, where the description contains quote marks.

You will see what I mean if you run this page in the AMP Test…

https://www.railadvent.co.uk/2018/02/steam-locomotive-to-be-restored-and-operate-on-the-west-somerset-railway.html/amp

Thanks

Michael

Post count: 23312

Hello RailAdvent,

Please provide a screen with the error so we can investigate it closer.

Thanks.

Post count: 10

This errors are shown in the validator here

https://search.google.com/test/amp?utm_source=gws&utm_medium=onebox&utm_campaign=suit&id=6X3NHzR21A0m1qNLE1to5Q

– The errors relate to this part of the code

a class=”td-social-sharing-button td-social-sharing-button-js td-social-network td-social-pinterest” href=”https://pinterest.com/pin/create/button/?url=https://www.railadvent.co.uk/2018/02/steam-locomotive-to-be-restored-and-operate-on-the-west-somerset-railway.html&media=https://www.railadvent.co.uk/wp-content/uploads/2018/02/7027-in-depot-filtered-w1400h800-cred-pa.jpg&description=Great Western Railway (GWR) Castle Class No.7027 “Thornbury Castle”, owned by JJP Holdings South West Ltd, will shortly move to the West Somerset Railway’s (WSR) Williton Works where the castle will be restored mainline running standard.”

The error is because the description in the link contains ” instead of & quot ;

Someone else has the same problem…

https://forum.tagdiv.com/topic/amp-errors-in-google-webmaster/

Post count: 20688

Indeed the problem is caused by the description containing quote characters. Please try to make this modification in the mentioned file
https://www.screencast.com/t/hwgLrPCY1Lv
Clear all caching and check if the issue is solved. Let us know.

Post count: 10

Hi Simion

I have modified the file, and the issue is now resolved 🙂

Thanks for your help

Michael

Post count: 29

How it is made? are you a sample writer? we have the same problems a few days

Post count: 20688

@kulecanbazi This issue will be fixed in the coming theme update, the solution mentioned above will be implemented by default in the theme. If you too are having the issue try the same solution in the mentioned file.

Post count: 29

I got passive until the solution came … I am excitedly waiting. Cheerfully

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.