Hello,
as I am trying to make my site Nu html valid, I get an error that I don’t know where ti comes from.
Specifically, there is this code at the bottom of the page and I want to eliminate the <style></style> part as it is invalid for the following reason.
“Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)”
Code is this (look just after the first closing “script” tag).
var avia_framework_globals = avia_framework_globals || {};
avia_framework_globals.frameworkUrl = 'https://mywebsite.gr/wp-content/themes/enfold/framework/';
avia_framework_globals.installedAt = 'https://mywebsite.gr/wp-content/themes/enfold/';
avia_framework_globals.ajaxurl = 'https://mywebsite.gr/wp-admin/admin-ajax.php?lang=el';
/* ]]> */
</script>
<style></style> <script type="text/javascript">
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();
</script>
Hey dellato,
I’m not sure I understand exactly what you need help with, could you try to explain that a bit further? Please note that our support cannot cover problems which are caused by customisations to the theme.
Best regards,
Rikard
I found out it was coming from a plugin I have installed and not from the theme.
Thank you, anyway.
Hi,
I’m glad this was resolved. If you need additional help, please let us know here the forums.
Best regards,
Jordan Shannon