4

I need to embed jquery files in ExpressionEngine.

I have created the template js under the main site template group.

I know that the css is embedding with the following tag:

<link rel="stylesheet" href="{stylesheet=template_group/template}" type="text/css" media="screen" />

for css its {stylesheet=template_group/template}

I want to know what is the tag for embedding js files

<script src=" [-->> ?? <<--] " type="text/javascript"></script>

1 Answer 1

8

Just make sure that your template containing your javascript is of the "JavaScript" type, and link it using the standard path syntax:

<script src="{path="scripts/myscript"}" type="text/javascript"></script>

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.