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
    <script data-relocate="true">
    	// your code
    </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...♫

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!