JHTML-BEHAVIOR-CAPTION-001

JHtml::_('behavior.caption')

behavior.caption

Image captions via MooTools were removed in Joomla 4.

JHtml::_('behavior.caption')CSS / figure captions — MooTools captions are gone

Dies at Joomla 3 → 4J3: Works nativelyJ4: Removed — fatalJ6: Removed — fatalBC plugin: no — already dead on J4Mechanical renameJavaScript

Symptoms people search

image captions javascript error · behavior.caption

Replace this code

Swap JHtml::_('behavior.caption') for CSS / figure captions — MooTools captions are gone.

Joomla 3

Remove or stop calling this

JHtml::_('behavior.caption');

Joomla 4 / 6

Use this instead

// Remove it. Style captions in CSS. Do not load MooTools.

How to fix it

  1. 1Delete behavior.caption calls.

Also known as

behavior.caption

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.