Skip Navigation

[Closed] Unwanted code in post AMP version

This support ticket is created 3 years, 1 month ago. 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)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 3 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#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

Languages: English (English )

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

The topic ‘[Closed] Unwanted code in post AMP version’ is closed to new replies.