JavaScript in template

  • Hello,


    I want to add some jQuery to a custom style, I created a template group and want to know which template should I copy. I thought it was the headIncludeJavaScript template but it says {* DO NOT EDIT THIS FILE *}, should I use the headInclude template instead?

    My styles and plugins in the Plugin-Store.

    ♪Quiero robarle los minutos a las horas pa' que mis padres nunca se me pongan viejos...♫

  • I think, the best would be in using the footer template. Additionally, you have to use the following script tag design:

    HTML
    1. <script data-relocate="true">
    2. // your code
    3. </script>
  • Thank you, I will try it.

    My styles and plugins in the Plugin-Store.

    ♪Quiero robarle los minutos a las horas pa' que mis padres nunca se me pongan viejos...♫

  • It worked :)

    My styles and plugins in the Plugin-Store.

    ♪Quiero robarle los minutos a las horas pa' que mis padres nunca se me pongan viejos...♫