Today i was facing a problem with W3 Validator that constantly show some Warnings : ” The
The same thing have to be done with style tags:
and replace with:
The two hooks are:
style_loader_tag – HTML link tag of an enqueued style
script_loader_tag – Html ling tag of the enqueued script
After that i have added two filters one for the style tag hook and the other one for the script hook.
The code below have to be written into functions.php file.
Now the problem is resolved but all the WordPress plugins and themes have to do that so we can’t fall in the problem to add the function in all of them manually.
Write in the comments below if you have any question or idea.