mardi 27 janvier 2015

wp wp_register_script function results type parameter missing


I used the following code



wp_register_script('jquery', get_bloginfo('template_directory').'/js/jquery.js', false, '',false);
wp_enqueue_script('jquery');


It includes the script as



<script src="http://ift.tt/1z9guaj"></script>


Here how to add the type parameter as type="text/javascript"


Because it creates an error in IE browser


Please help to fix this.


Thanks





Aucun commentaire:

Enregistrer un commentaire