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

General Questions/New to Joomla! 5.x • Re: Script in header AND at the end of index.php?

$
0
0
This doesn't work, if I use the above command, my page ends up void of css (also, I use the code from Cassiopeia template and they don't seem to use that command anywhere).

Also, it doesn't answer my original question.
Hi. I don't know why this does not work for you. Perhaps you are doing something wrong.
This code works:

Code:

$wa->useStyle('mystyle')->registerAndUseScript('myscript');
BUT, if I use

Code:

$wa->registerAndUseStyle('mystyle')->registerAndUseScript('myscript');
My style will not be used in the project, for some reason.

Statistics: Posted by SocketPup — Thu May 16, 2024 3:36 am



Viewing all articles
Browse latest Browse all 2178

Trending Articles



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