I searched the forum but couldn't find answers. I want to ad some simple javascript to my template but I get error messages. A similar thing happened when I tried adding PHP but I figured out how to create a user defined tag and ad the PHP that way. Everything works fine with PHP now. Javascript isn't working out the same way. Any ideas?
Thanks.
Javascript in templates
Re: Javascript in templates
If you want the script in the header section of the webpage you can include a tag like this
in the metatag section on the add/edit content page. You'll find that under the option tab. This will put the script tag in the header of your page and will link to your script file.
Code: Select all
<__script__ src="xxx.js">