Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1475

Joomla! 5.x Coding • Adding custom js and css in a child template J5

$
0
0
So, what is the best approach to add some js and css files in a child template?
I'm trying with the 'joomla.asset.json' file.
But this file is located in the parent template folder (templates/cassiopeia), shall I have a local 'joomla.aset.json' file for my child template? When I created this child template, such a file didn't duplicate.
I want modifications to be specific for this child template only.
Is there a better approach? By better I mean fast in the first place, so I prefer writing some code, than installing extensions and plugins.

Statistics: Posted by pl71 — Tue Mar 26, 2024 7:11 am



Viewing all articles
Browse latest Browse all 1475

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>