Skip Navigation

[Resolved] HTML validator error on start page. Problem with loading styles for google maps

This support ticket is created 5 years 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)


This topic contains 4 replies, has 2 voices.

Last updated by PZ 5 years ago.

Assigned support staff: Nigel.



Please check:
hidden link

After the update of one of Toolset plugins there is this error visible when validating the start page: hidden link with

Error: Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)

Could you help me remove that error? Maps are used only in specific subpages. Is it possible to enable loading this css style only there?



Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

You are right, the CSS fixes added by the Maps plugin are added to the body (not valid) rather than the head (valid).

I can't see why it has been done like that and have requested that this be changed.

I spoke with the developers the other day about removing the action which adds this CSS on pages where it is needed and they confirmed that the action is added in such a way that it cannot be removed.

So, currently there is no way to fix this I'm afraid.

I am escalating your thread so the issue can be investigated further, and I'll update you when there is any news.

Thanks for your patience.



Thanks a lot. I suppose this code loads in every subpage (although I haven't checked that). Could you provide me with some code snippet (to insert into function.php file) to remove the unnecessary source code from the main page only?



Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry, I can't. The way the CSS is added it is impossible to remove without disabling the maps plugin entirely.

I raised this issue with the developers the other day who confirmed that is currently the case.

But they should be able to fix adding the CSS to the head rather than the body so that the page validates, but we'll need to wait for them to confirm that.



OK, waiting patiently then. Thanks.