• Resolved wpksasa

    (@wpksasa)


    Since I need to develop a website without any validation Errors or Warnings, would be possible to fix the unnecessary type=’text/javascript’ attribute, in the next versions?

    Here are the warnings I get on the homepage, when GDPR cookie consent plugin is enabled:

    https://ibb.co/iSC6Ed

    I have removed similar warnings I get with other plugins, before taking the screenshot from validator.w3c.org. Those warnings don’t appear when Cookie consent plugin is disabled.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @wpksasa,

    We are using the WordPress enqueue function to render the Javascript code using the plugin. The type=’text/javascript’ attribute is being added by WordPress.

    Could you please let us know how you removed similar warnings from other plugins? And also please share the URL of your website so that we can take a closer look at how this can be resolved.

    Thread Starter wpksasa

    (@wpksasa)

    I markwt,

    I didn’t remove them by resolving the issue: I have used console browser to delete divs of the other issues, so I could post a screenshot with only warnings related with Cookie consent.

    Since the issue is generated by WP directly, I have to figure how to fix this in some other way. I will keep you updated if I resolve and I will post the website as well!

    Thread Starter wpksasa

    (@wpksasa)

    Hi markwt

    I fixed it by applying a workaround described here:

    https://wordpress.stackexchange.com/a/303217/145785

    The website (still in development) is here: https://www.tossesecca.it/ and validator isn’t giving those warnings anymore.

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