View Single Post
  #5  
Old 08-21-2014, 11:15 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: How to add statements to head section

Hello Jan,

This is because the templater finds "{" and "}" and decides that it is an instruction to him that he doesn't know.

Try this:

Code:
{** * Head list children * * ... * * @ListChild (list="head", weight="700") *} <script type="text/javascript" src="//use.typekit.net/dap7cpb.js"></script> <script type="text/javascript"><!--try{Typekit.load();}catch(e){}--></script>


Does this help?

A better way would be decorating the getJSFiles() method in the \XLite\View\Controller widget and adding a new JavaScript file that does the job on the page load.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 08-21-2014 at 11:22 PM.
Reply With Quote