TPL-NO-ASSET-JSON-001

templateDetails.xml only

Template without joomla.asset.json

Joomla 3 templates loaded CSS/JS with JHtml helpers. Joomla 4+ templates declare a web asset file. Without it, scripts collide or never load on Joomla 6.

templateDetails.xml onlyjoomla.asset.json + WebAssetManager in index.php

Dies at Joomla 4 → 5J3: Works nativelyJ4: Changed behaviourJ6: Changed behaviourBC plugin: not applicableYou rewrite thisTemplates

Symptoms people search

template css not loading · scripts duplicated · no joomla.asset.json

Replace this code

Swap templateDetails.xml only for joomla.asset.json + WebAssetManager in index.php.

Joomla 3

Remove or stop calling this

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

Joomla 4 / 6

Use this instead

$wa = $this->getWebAssetManager();
$wa->useStyle('template.cassiopeia.user');
// Register template assets in joomla.asset.json

How to fix it

  1. 1Add joomla.asset.json next to templateDetails.xml.
  2. 2Load CSS/JS through WebAssetManager in index.php.
  3. 3Stop calling bootstrap.framework and jquery.framework in the template chrome.

Also known as

joomla.asset.json · templateDetails.xml · WebAssetManager

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.