XF 2.0 How to change lightbox settings

I want to change some settings of lightbox when viewing attachments.
For example change/remove the animation, remove some buttons and remove the list of files that it shows in footer.

How to do that? I can't find any settings anywhere.


XenForo developer
Staff member
Most of this will be in JS and thus require custom development to change. The extent of what's changeable is in lightbox.less.


XenForo developer
Staff member
You can use script-like tags there, but you would really need to build on top of the XF framework and use <xf:js> tags similar the core. This will ensure that your tags are only loaded once and will be dynamically loaded when needed. You can use something like:
<xf:js src="path/to/file.js" />
This path is relative to the js/ directory within XF.

Alternatively, you could potentially just add your tag to the bottom of the PAGE_CONTAINER template, though I'd recommend building on the XF framework as there are situations where this won't necessarily work.