简体   繁体   中英

Joomla! Unset CSS in template index.php

I have a custom Joomla 3 template where I use

unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);

to unset boootstrap functionality. It works fine for me. Now I want to use same technique to unset a css file and set another one for it.

unset($this->_scripts[JURI::root(true).'/media/system/css/calendar-jos.css']);

And it gives me no result.

How can I solve this issue?

Thanks.

Change:

unset($this->_scripts

to:

unset($this->_styleSheets

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM