0

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.

1
  • A stylesheet would not be in the _scripts array but probably one names _styles or _stylesheets Commented Oct 16, 2013 at 23:18

1 Answer 1

3

Change:

unset($this->_scripts

to:

unset($this->_styleSheets
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for answering but this did not have any affect. I put unset($doc->styleSheets[JURI::root(true).'/media/system/css/calendar-jos.css']); and also tried unset($doc->_styles[JURI::root(true).'/media/system/css/calendar-jos.css']); but css still is there
unset($this->_styleSheets[JURI::root(true).'/media/system/css/calendar-jos.css']);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.