Sauter la navigation

[Fermé] Unwanted code in post AMP version

This support ticket is created Il y a 3 années et 5 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Minesh Il y a 3 années et 5 mois.

Assisté par: Minesh.

Auteur
Publications
#2247509

I am using AMPforWP to generate an AMP version of posts on one of my clients site and some posts cannot be validated because Toolset adds some code on top of the tag <!doctype html> and so I got the following error:

The parent tag of tag 'html' is '$root', but it can only be '!doctype'.

Any idea on how to fix this issue?

#2248591

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Are you sure that Toolset adds the doctype declaration as Toolset should only interact in head to add scripts if any and in body part.

Can you please tell me where what file is adding this or what code?

Le sujet ‘[Fermé] Unwanted code in post AMP version’ est fermé à de nouvelles réponses.