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

Joomla! 4.x Coding • I want to remove individual css files, code not working!

$
0
0
Hi everyone!
Please help me correct the codes below. after using this code, I got an error message with an error page

"0 Undefined method unregisterasset in class Joomla\CMS\WebAsset\WebAssetManager"

$wa = $this->getWebAssetManager();

// Remove individual CSS files
$wa->unregisterAsset('main.css');
$wa->unregisterAsset('jquery.bootstrap-touchspin.css');
$wa->unregisterAsset('jquery-ui.slider.min.css');
$wa->unregisterAsset('colors_standard.min.css');
$wa->unregisterAsset('template.min.css');
$wa->unregisterAsset('joomla-alert.min.css');

Please correct me.

Thanks in advance. it is also urgent for me too.

Statistics: Posted by tutonn — Fri May 03, 2024 11:56 am



Viewing all articles
Browse latest Browse all 2162

Trending Articles



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