Navigation überspringen

[Geschlossen] Unwanted code in post AMP version

This support ticket is created vor 3 Jahre, 6 Monaten. 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)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 3 Jahre, 6 Monaten.

Assistiert von: Minesh.

Author
Artikel
#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
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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?

Das Thema „[Geschlossen] Unwanted code in post AMP version“ ist für neue Antworten geschlossen.