Injection points
The Homepage and Dashboard builders also provide a Custom HTML block for page-local
markup.
Safe workflow
1
Export settings
Download an Editor export before introducing custom code.
2
Add one change
Insert only one integration or customization at a time and save.
3
Test navigation lifecycle
Visit several pages through Livewire navigation and a hard reload. Confirm the code
does not initialize twice.
4
Test cleanup
Remove global event listeners, intervals, observers, and third-party widgets when
Alpine/Livewire replaces their owning component.
5
Verify security and consent
Check Content Security Policy, privacy requirements, and the third party’s data flow.
CSS example
Custom CSS should consume LucentUI tokens so it adapts to color and appearance modes:JavaScript example
Make initialization idempotent and keep a reference to cleanup work:These fields execute trusted administrator code on customer-facing pages. Pasted code
can steal sessions, alter checkout, or exfiltrate data. Never paste a snippet you have
not reviewed, and restrict Editor access to trusted administrators.
Recovery from broken custom code
If the Editor is still reachable, remove the last snippet and save. Otherwise restore a known-good export or remove the correspondinglucentui_custom_* setting through a
controlled database/admin recovery process. Clear caches afterward: