JHTML-BOOTSTRAP-FRAMEWORK-001

JHtml::_('bootstrap.framework')

JHtml::_('bootstrap.framework')

Joomla 3 bootstrap.framework loaded Bootstrap 2 (and often jQuery). On Joomla 4+ it does the wrong thing or nothing useful. Cassiopeia/Atum already load Bootstrap 5 through WebAssetManager.

JHtml::_('bootstrap.framework')WebAssetManager bootstrap.css + bootstrap.es5

Dies at Joomla 3 → 4J3: Works nativelyJ4: Removed — fatalJ6: Removed — fatalBC plugin: no — already dead on J4Patch possible — review itJavaScript

Symptoms people search

bootstrap.framework · double bootstrap · dropdowns broken

Replace this code

Swap JHtml::_('bootstrap.framework') for WebAssetManager bootstrap.css + bootstrap.es5.

Joomla 3

Remove or stop calling this

JHtml::_('bootstrap.framework');
JHtml::_('bootstrap.loadCss');

Joomla 4 / 6

Use this instead

$wa = $this->getDocument()->getWebAssetManager();
$wa->useStyle('bootstrap.css');
$wa->useScript('bootstrap.es5');

How to fix it

  1. 1Delete bootstrap.framework from templates and extensions.
  2. 2If you still need Bootstrap JS, depend on bootstrap.es5 in joomla.asset.json.
  3. 3Rewrite markup to Bootstrap 5 (this reference: row-fluid, span*, data-bs-*).

Also known as

bootstrap.framework · bootstrap.loadCss · JHtml bootstrap

Related issues

Get in touch

Have a project in mind? Let's talk about it.

Tell us what you're building. Whether it's a new site, an online store, a mobile app, or something that needs AI under the hood, we'll get back to you within a business day.

Free consultation
No commitment, no pressure
Reply within 24 hours
Usually much faster

Prefer a direct conversation?

Request a project quote

Tell us about your project

Fill out the quick form and we'll reach out.