How To Include This Line In The Head Of The Website Pages?

Hello,



I need to [color=#333333]include this line in the head of the website pages :[/color]


...




where is I should add that ? I try to open design>>layout>>defult>> but where is exactly ???

If you want to put it directly before the head tag, you should edit the following file:

design\themes\YOUR_THEME\templates\index.tpl

If you can use hooks, styles will be included between your code and the head tag

Design >> Layouts >> Default >> Click on the little gear icon on the tab…

Hi,



If you concern about future upgrades, please follow advice of CarStickersDecals or create file:



design/themes/YOUR_THEME/templates/addons/my_changes/hooks/index/scripts.post.tpl



with following code:






Then install “My changes” addon and clear template cache.



Best regards,

WSA team


Hi,

If you concern about future upgrades, please follow advice of CarStickersDecals or create file:

design/themes/YOUR_THEME/templates/addons/my_changes/hooks/index/scripts.post.tpl

with following code:



Then install "My changes" addon and clear template cache.

Best regards,
WSA team


It will not work as the scripts template is called at the bottom of the page now

Thank you all, I did that

[color=#282828][font=arial, verdana, tahoma, sans-serif]Design >> Layouts >> Default >> Click on the little gear icon on the tab…[/font][/color]

[font=“arial, verdana, tahoma, sans-serif”][color=“#282828”]and works just fine with me [/color][/font]

In v4.3.4 there will be a new hook in the index.tpl file “head_scripts”

Here is an example how you will be able to add some js code to the HEAD.


  1. Create template for this hook, e.g. design/themes/YOUR_THEME/templates/addons/my_changes/hooks/index/head_scripts.post.tpl
  2. Use “data-no-defer” attribute in the script tag

    e.g.

```php


```

Hi All,

How to only add in Checkout page?

Regards,

Andry

Design -> Layouts -> Checkout -> Click on the little gear icon on the tab...

Design -> Layouts -> Checkout -> Click on the little gear icon on the tab...

Im using CS cart 4.1.2, cant find in this version. Any idea?

Please check

http://forum.cs-cart.com/topic/37758-how-to-add-custom-javascript-with-my-changes-addon/