I'm developing a custom Joomla template and have unset
a lot of the core dependencies, such as jQuery and Bootstrap in the template's index.php
.
The problem now is that the core extensions call some of Bootstrap's featuues, like so:
JHtml::_('tooltip', $tooltip, $options);
which in turn calls the Bootstrap library and the unset
doesn't work as it tried to remove the file before it's called.
So I'd like to override some of the methods for the JHtmlBootstrap
class, so that they return nothing, like so:
abstract class JHtmlBootstrap
{
public static function tooltip() {
return;
}
}
I know I'm going to have to write a plugin, but not sure as to the best approach.