Saltar navegación

[Cerrado] Unwanted code in post AMP version

This support ticket is created hace 3 años, 6 meses. 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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh hace 3 años, 6 meses.

Asistido por: Minesh.

Autor
Mensajes
#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
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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?

El debate ‘[Cerrado] Unwanted code in post AMP version’ está cerrado y no admite más respuestas.