Skip to content

Instantly share code, notes, and snippets.

@amilabandara
Created February 5, 2015 12:38
Show Gist options
  • Save amilabandara/1a69e6fec88ec6c2c01f to your computer and use it in GitHub Desktop.
Save amilabandara/1a69e6fec88ec6c2c01f to your computer and use it in GitHub Desktop.
Remove Core Libraries from Joomla
<?php
$doc = JFactory::getDocument();
unset($doc->_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);
unset($doc->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
unset($doc->_scripts[JURI::root(true).'/media/jui/js/jquery-migrate.min.js']);
unset($doc->_styleSheets[JURI::root(true).'/media/jui/css/bootstrap.min.css']);
unset($doc->_styleSheets[JURI::root(true).'/media/jui/css/bootstrap-responsive.min.css']);
unset($doc->_styleSheets[JURI::root(true).'/media/jui/css/bootstrap-extended.css']);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment