Can I Add Some Js To The Head Without It Being Moved?

Hey,

I want to add some webfont stuff to the head (and some analytics later), I'm attempting this with a overriding hook for "head_scripts.override.tpl" though when I do, I just get this message where it should be:

And of course, it has been moved to the bottom of the page.
Can this be turned off somewhere?

Hey,

I want to add some webfont stuff to the head (and some analytics later), I'm attempting this with a overriding hook for "head_scripts.override.tpl" though when I do, I just get this message where it should be:

And of course, it has been moved to the bottom of the page.
Can this be turned off somewhere?

Try to add a script on the Design > Layouts page in the admin:

1. Click the gear button near the Default location.

2. Enter the necessary code into the Custom HTML code field and save the changes.

Hey,

I want to add some webfont stuff to the head (and some analytics later), I'm attempting this with a overriding hook for "head_scripts.override.tpl" though when I do, I just get this message where it should be:

And of course, it has been moved to the bottom of the page.
Can this be turned off somewhere?

Use data-no-defer attribute in order the script remain in top. Here are the details: http://docs.cs-cart.com/4.3.x/user_guide/look_and_feel/changing_attributes/script_display.html?highlight=defer

Thank you both for responding. I shall use the data-no-defer method, I really dislike adding code like that through a CMS's dashboard.

Confuses other devs too who may want to "find in files" later down the line.

Thanks for getting back to me :)

Use data-no-defer attribute in order the script remain in top. Here are the details: http://docs.cs-cart.com/4.3.x/user_guide/look_and_feel/changing_attributes/script_display.html?highlight=defer

Thank you. It helped a lot.