@collizo4sky And more.
On the login, registration, and password reset pages, you insert custom styles into the body of the page. And it leads to HTML validation errors.
https://validator.w3.org/nu/?showsource=yes&doc=https%3A%2F%2Fgroomershop.ru%2Fforgot-password%2F%3Fnocache#l340c7
If it is in your power, please fix this bug so that the custom styles is inserted using the “wp_enqueue_scripts” hook and the wp_add_inline_style() function or using JS, which will create a new ‘style’ element with the added innerHTML property and add the object as a child of the HEAD container. Or otherwise insert a custom style into the HEAD.
On the basis of:
<script>
var s = document.createElement('style');
s.innerHTML = '.foo{color:white;}';
document.head.appendChild(s);
</script>
Or on the basis of:
function pp_add_inline_css() {
$custom_css = in this place get a custom style...
wp_add_inline_style('ppcore', $custom_css);
}
add_action('wp_enqueue_scripts', 'pp_add_inline_css');
-
This reply was modified 5 years, 4 months ago by Mikhail Alferov. Reason: typos
-
This reply was modified 5 years, 4 months ago by Mikhail Alferov. Reason: add a link