🧩 Custom Code Settings
LucentUI allows you to inject custom code into multiple areas of your site, giving full control without editing the core theme.Custom HTML - Head
- Setting Name:
custom_head_html - Type: Textarea
- Description: Injects inside
<head>. Ideal for:- Google Analytics
- Custom fonts
- Meta tags
Examples:
Google Analytics 4:Custom HTML - Body Top
- Setting Name:
custom_body_top_html - Type: Textarea
- Description: Injects at top of
<body>. Common uses:- Google Tag Manager (noscript)
- Tracking pixels
Examples:
Google Tag Manager (noscript):Custom HTML - Body Bottom
- Setting Name:
custom_body_bottom_html - Type: Textarea
- Description: Injects before
</body>. Use for:- Chat widgets (e.g. Tawk.to, Crisp)
- Discord embeds
- Support widgets
Examples:
Tawk.to Chat Widget:Custom HTML - Dashboard Only
- Setting Name:
custom_dashboard_html - Type: Textarea
- Description: Displays only on dashboard pages. Great for:
- User-specific banners
- Admin announcements
Examples:
Admin Announcement Banner:Custom HTML - Homepage Only
- Setting Name:
custom_homepage_html - Type: Textarea
- Description: Injects into homepage only. Use for:
- Promo banners
- Hero messages
Examples:
Promotional Banner:🎨 Custom CSS
- Setting Name:
custom_css - Type: Textarea
- Description: Will be wrapped in
<style>tag.
Examples:
Dark Theme Customization:🔧 Custom JavaScript
- Setting Name:
custom_js - Type: Textarea
- Description: Injects at the bottom of the page inside
<script>tag.
Examples:
Enhanced User Experience:Custom code is perfect for enhancing UI behavior, embedding third-party tools, or adding advanced analytics — all without touching the theme code.