unset script and css not working

0
I am trying to unset all your css and js
unset($doc->_scripts['media/system/js/mootools-core.js']);
unset($doc->_scripts['media/jui/js/bootstrap.min.js']);
unset($doc->_styleSheets['media/jui/css/bootstrap.min.css']);
unset($doc->_styleSheets['components/com_muscol/assets/letter.css']);
unset($doc->_styleSheets['components/com_muscol/assets/album.css']);
unset($doc->_styleSheets['components/com_muscol/assets/comments.css']);
unset($doc->_styleSheets['components/com_muscol/assets/artist_detailed.css']);

but they are loaded anyway

why do you load the old mootools ?
I am using my own css with less I dont want to load any other css , how can I remove yours

I dont want yo load jwplayer I am using embedded youtube videos
Responses (2)
  • Accepted Answer

    Joan Vilà
    Joan Vilà
    Offline
    Tuesday, October 13 2015, 04:25 PM - #Permalink
    0
    Hello Erick,

    To unset all of our js and css you should delete some lines inside some files.

    In particular, the lines that load the css and the js are the ones like:
    $doucment->addStyleSheet(...);
    and
    $document->addScript(...);

    You can find those declarations inside:
    components/com_muscol/views/*/view.html.php

    Where /*/ are all the views subfolders. For example if you want to delete the css on the album page you need to remove those declarations from:
    components/com_muscol/views/album/view.html.php

    We are using mootols because when the component was made, jQuery wasn't available yet for Joomla. Now, we are changing it slowly to jQuery.

    In order to not load jwplayer, you can uninstall JW Player plugin. This should do the job.

    If you have any questions, ask us and we will be glad to help you.

    Thank you,
    Joan
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 13 2015, 04:28 PM - #Permalink
    0
    thank you
    The reply is currently minimized Show
Your Reply