• Hello, i’m french.
    I want that my site will be valide W3c. But just one error appear :

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

    =’all’ />?<style id=’leafletmapsmarker-inline-css’ type=’text/css’>?.leaf

    Contexts in which element style may be used:
    Where metadata content is expected.
    In a noscript element that is a child of a head element.
    Content model for element body:
    Flow content.

    The lines in errors :

    <style id=’leafletmapsmarker-inline-css’ type=’text/css’>
    .leaflet-popup-content img { max-width:234px !important; height:auto; width:auto !important; }
    .leaflet-popup-content img { max-width:234px !important; height:auto; width:auto !important; }
    </style>

    Can you put this lines in an external link or automatically add it in the style.css of the theme ?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    I am sorry but I do not see a way to change our code here nor do I see any issues regarding validity – can you please post a link to the validator you used? From our experience these are good tools to use as guideline, but 100% conformity (especially with strict mode) is nearly impossible in a real live scenario.
    best,
    Robert

    Thread Starter fanny300

    (@fanny300)

    Hello,

    The link : https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.relooking-beaute-minceur.fr%2F

    This lines css are generate by : Default values ??for marker pop-ups -> CSS for images in popups.

    I try put to empty the field, but the lines still appear :

    <style id=’leafletmapsmarker-inline-css’ type=’text/css’>
    .leaflet-popup-content img { }
    .leaflet-popup-content img { }
    </style>

    Can you add just a condition, if the field is empty : don’t generate this lines ?

    Thanks.

    Hi,
    please try changing the setting “Where to insert Javascript files on frontend?” at Settings / Misc / “WordPress compatibility settings” to “header+inline-javascript” – this should fix your validation issue.
    Another possibility would be to upgrade to Maps Marker Pro where optimized script and CSS loading is implemented.
    best,
    Robert

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘W3C validation’ is closed to new replies.