Post by Dev. » Wed Aug 03, 2022 11:35 am

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 !!!

New member

Posts

Joined
Sun Jul 17, 2022 10:02 pm

Post by DigitCart » Wed Aug 03, 2022 2:40 pm

Hi
Where did you add this?

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by Dev. » Thu Aug 04, 2022 4:19 am

DigitCart wrote:
Wed Aug 03, 2022 2:40 pm
Hi
Where did you add this?
Hello,
in /catalog/view/template/file.twig

New member

Posts

Joined
Sun Jul 17, 2022 10:02 pm

Post by by mona » Thu Aug 04, 2022 7:09 am

consider the controller

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Dev. » Thu Aug 04, 2022 11:21 am

I solved. Thank you all

New member

Posts

Joined
Sun Jul 17, 2022 10:02 pm
Who is online

Users browsing this forum: Chulain and 4 guests