Skip to main content

🧩 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 Fonts:
Meta Tags for SEO:

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):
Facebook Pixel:

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:
Crisp Chat:
Discord 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:
Maintenance Notice:

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:
Newsletter Signup:

🎨 Custom CSS

  • Setting Name: custom_css
  • Type: Textarea
  • Description: Will be wrapped in <style> tag.

Examples:

Dark Theme Customization:
Responsive Design Enhancements:

🔧 Custom JavaScript

  • Setting Name: custom_js
  • Type: Textarea
  • Description: Injects at the bottom of the page inside <script> tag.

Examples:

Enhanced User Experience:

Always test custom code in a staging environment before deploying to production. Consider performance impact and ensure compatibility across browsers.
Custom code is perfect for enhancing UI behavior, embedding third-party tools, or adding advanced analytics — all without touching the theme code.