Remove script type
-
Hi.
Thanks for the great plugin. I have an issue with the script type atttributes as I am working on w3 validation.
I have successfully removed type=text/javascript using below code in my functions.php:
add_filter('script_loader_tag', 'clean_script_tag'); function clean_script_tag($input) { $input = str_replace("type='text/javascript' ", '', $input); echo $input; return str_replace("'", '"', $input); }
But the scripts coming from your plugin remains as it is.
Can you please guide me on how I can remove
type='text/javascript'
from<script type='text/javascript'>
ANDtype="text/css"
from<style type="text/css" id="hustle-module-styles">
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove script type’ is closed to new replies.