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

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

$
0
0
Thanks for the help!
I tried it as described, but still, my JS is only working, when put in the template.js.

BUT, i found a solution that worked for me in another forum:
I put my JS Code in the user.js in this bracket:

Code:

document.addEventListener("DOMContentLoaded", function(){/* MY CODE */});
now it works

Statistics: Posted by Roland_S — Tue Sep 03, 2024 1:07 pm



Viewing all articles
Browse latest Browse all 1627

Trending Articles



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