Wednesday, November 27, 2024

Enable/Disable the automatically adding from the caption.js

Abstract: If you build your own template or change a existing one you might wish to enable/disable the automatically adding from the caption.js so how is that done in Joomla?

Solution: The adding from the caption.js is controlled via:

JHtml::_(‘behavior.caption’);

So if you wish to remove that so that it isnĀ“t added automatically for example you need to edit the part from your template and remove this string. This is for example added in com_content\article\default.php

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Stay Connected

35FollowersFollow
- Advertisement -

Latest Articles