I would probably approach this differently and use a styles.post.tpl file in your my_changes addon in the customer/addons/my_changes/hooks/index directory. I would do it as:
```php
```
This should prevent the template engine or the javascript from rewriting your code.
I did what you suggested and it worked perfectly. Then I started thinking about WHY it worked and discovered it was not the template location but the way the script was caled.
I was trying the same way cs-cart was doing it with “{ }” brackets. I guess when you do that, the smarty compiler assumes a relative direcetory. When I did a traditional script call with “” like you put above, it worked regardless of which template I placed it.
[quote name=‘tbirnseth’]I would probably approach this differently and use a styles.post.tpl file in your my_changes addon in the customer/addons/my_changes/hooks/index directory. I would do it as:
```php
```
This should prevent the template engine or the javascript from rewriting your code.[/QUOTE]
To do something similar, do I need to create a my_changes folder as I do not see one in my installation ?
[quote name=‘m-space’]To do something similar, do I need to create a my_changes folder as I do not see one in my installation ?[/QUOTE]
Make sure the my_changes addon is installed (Administration/Addons).
You will probably have to create the top-level directory because by default nothing is distributed with this addon. Hence there was nothing to install when the skin was created.
Just watch your file ownerships and permissions to be correct for your server environment.