Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2678

Joomla! 5.x Coding • Re: How add Joomla bootstrap to template?

$
0
0
Add it as dependency to your joomla.asset.json or use web asset manager to load manually. To load the full CSS:

Code:

$this->getWebAssetManager()->useAsset('style', 'bootstrap.css');
JS scripts are split into separate components. You should only load the ones you actually use:

Code:

$this->getWebAssetManager()    ->useAsset('script', 'bootstrap.carousel')    ->useAsset('script', 'bootstrap.somethingelse');

Statistics: Posted by SharkyKZ — Wed Jan 10, 2024 8:01 am



Viewing all articles
Browse latest Browse all 2678

Trending Articles