Joomla! 3.1, Remove Bootstrap

I want to completely remove bootstrap from my Joomla 3 site, rather than displaying tooltips on the interface. I tried almost everything and read almost every article on this topic, but I can not find the right solution.

The fact is that it is not so difficult to delete, but I want to delete it forever so that no update can undo my changes.

Is there any way to accomplish this task?

+4
source share
2 answers

It is not enough to remove several lines from the template and modules. My solution is to create a plugin:

class plgSystemYourPlugin extends JPlugin
{
    public function onBeforeCompileHead()
    {
        // Application Object
        $app = JFactory::getApplication();

        // Frontend
        if( $app instanceof JApplicationSite )
        {
            $doc            = JFactory::getDocument();
            // Remove default bootstrap
            unset($doc->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
        }
    }
}

He works at Joomla! 3.2 - 3.6.

+6
source

All Articles