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

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

but using:

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

will give me:

<script type="text/javascript"> 

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)


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: