• Hi there,

    First I would like to say thanks for such amazing plugin.

    The plugin is causing this error in W3C Validator:
    Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)

    It seems the plugin is printing a <style> label after the widget title and that is what causes the error.

    Is would be any way to load that styles in header or directly unload (I am using self styles).

    Thanks in advance!!

    https://www.ads-software.com/plugins/mailchimp/

Viewing 1 replies (of 1 total)
  • Hi Pabagan,

    Thanks for writing in today. I can definitely understand the concern here. To style the form, we will add a <style> tag above the form in your sites code.
    Validators will mark a <style> element in the <body> tag as invalid. But validators can be strict at times and a <style> element in the body will work in the large majority of browsers.

    If you would like to remove that <style> tag, the plugin files will have to be modified. Below are the steps to do that.

    In the WordPress Admin area, go to Plugins > Editor.
    Select the MailChimp plugin and click on the mailchimp_widget.php Find the <style> section and remove it. The css in this section could be added to your site’s css or the <head> of your site.

    Let us know if you have any other questions.

    -mc_d

Viewing 1 replies (of 1 total)
  • The topic ‘W3C Validation Error’ is closed to new replies.