HTML validation error in maintenance mode - Forum | JoomShaper
Solved Helix Framework

HTML validation error in maintenance mode

Asked by David Forés 1 year ago Last activity 1 year ago

Hello,

When activating the maintenance mode, an error is reported when checking the resulting HTML code using the validator:

https://validator.w3.org

Error: Element style not allowed as child of element body in this context.

The error is due to the fact that in this file:

\plugins\system\helixultimate\overrides\layouts\comingsoon.php

Code is added with the “style” tags inside the body (lines 205-213):

if($params->get('comingsoon_bg_image')) : ?
   <style>
        body{
               ...
            }
   </style>
endif;

Image

If this part of the code is moved just before line 71, before the “head” ends, the HTML validation is successful.

Could you review it to correct it in the next version?

Thank you.

Accepted answer

Marked as the solution
Toufiq Senior Staff

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. I will share your issue to our developer team.

Best regards,

Toufiqur Rahman (Team Lead, Support)

David Forés Asked this

Ok, thank you.

Log in to reply.