Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1294765

    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>
    • This topic was modified 3 years, 7 months ago by dellato.
    #1295132

    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

    #1295735

    I found out it was coming from a plugin I have installed and not from the theme.
    Thank you, anyway.

    #1295879

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Can't find where this code comes from.’ is closed to new replies.