I would like to a add the following script into WordPress:

<script type="text/x-jquery-tmpl">  
  ...
</script>

but using:

wp_add_inline_script( 'my-script', '...' );

will give me:

<script type="text/javascript"> 
  ...
</script>

Must I edit header.php for any type of script that is not javascript?

Read more here: WordPress add script with custom type (x-jquery-tmpl)


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: