Page 1 of 1

Js and Css files

Posted: Wed Aug 03, 2022 11:35 am
by Dev.
Hello,
I have a custom js and CSS file, how can include it in the .twig file

Code: Select all

<script type="text/javascript" src="catalog/view/javascript/foldername/file.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/stylesheet/file.css">
But didn't work !!!

Re: Js and Css files

Posted: Wed Aug 03, 2022 2:40 pm
by DigitCart
Hi
Where did you add this?

Re: Js and Css files

Posted: Thu Aug 04, 2022 4:19 am
by Dev.
DigitCart wrote:
Wed Aug 03, 2022 2:40 pm
Hi
Where did you add this?
Hello,
in /catalog/view/template/file.twig

Re: Js and Css files

Posted: Thu Aug 04, 2022 7:09 am
by by mona
consider the controller

Re: Js and Css files

Posted: Thu Aug 04, 2022 11:21 am
by Dev.
I solved. Thank you all