Thank you for the suggestion. So in my template, I added a joomla.asset.json file. In that file, I added this code:Hi. You should use Web Asset Manager ($wa). This is how it should look like in index.phpAfter installing the template, string(15) "Adding CSS file" is shown at the top of the document. However, the css still doesn't work (I also tried clearing the cache again)
2.jpg
Tip: Use Cassiopea's index.php like example
Code:
{ "$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json", "name": "Gardentemplate", "version": "4.0.0", "description": "This file contains assets used by gardentemplate", "license": "GPL-2.0-or-later", "assets": [ { "name": "mystyle", "type": "style", "uri": "style.css" } ]}
Then, in index.php, I added this:
Code:
<?php$wa = $this->getWebAssetManager();$wa->useStyle('mystyle');?>
Statistics: Posted by SocketPup — Wed Mar 20, 2024 9:14 am