Adding Custom CSS/JS in Community Group

Group admins can add custom CSS and JavaScript (JS) to a community group, giving you control over how your group looks and works. Your code applies to that group only, so the rest of your communities stay as they are.

Note: FG Funnels Support cannot help troubleshoot the contents of custom code or any issues relating to custom code.

Still on the classic look? See Moving to the New Client Portal Experience.

Before You Switch to the New Community

Important: The new community uses its own default colors, and older custom code may need fixing.

  • Recheck your group's colors right after you switch, and reapply them under Settings > Appearance if they've changed.
  • Custom CSS or JS that worked in the classic community can break in the new look. When you see the Meet your new community experience message, click Preview to check your custom code before you click Turn on for everyone, then fix anything that looks off. Your members won't need to sign in again.

In the new community, your colors are under Settings > Appearance and your custom code is under Settings > Branding.

The notice in your community shows Dec 1, 2026. That's when the switch-back window closes. Every account moves to the new community permanently on Dec 31, 2026.

The Meet your new community experience message with the Preview and Turn on for everyone buttons

Settings > Appearance with the Community Themes and Customise tabs

How to Customize Your Groups

Follow these steps to add custom code to your groups:

1. Access group settings

Go to Memberships > Communities > Groups, find your group, and click Login to open it. Then click the Settings tab.

Memberships > Communities > Groups with a group card and its Login button

The group's Settings tab

In the settings menu, click Branding. Scroll down and expand Advanced to reach the custom code inputs.

Branding with Advanced expanded: Enable Live Mode, Test Preview, Custom JavaScript, Custom CSS, and Tracking Code

2. Add custom code

Paste your code into the matching field. Here's what each one does:

  • Custom CSS: Change the visual style of your group, such as colors, fonts, spacing, and layouts. It applies to all group pages.
  • Custom JavaScript: Add interactive elements or functionality to your group. It runs after the page loads.
  • Tracking Code: Add analytics and tracking scripts to the page header or footer. Use the Header Code and Footer Code tabs.

The Custom JavaScript and Custom CSS fields

3. Preview your changes

Before making your customizations live, click Test Preview. It shows you how your code affects the group without changing what your members see. If something doesn't look right, adjust your code and preview again.

Enable Live Mode (off) and the Test Preview button

4. Go live

When you're happy with your customizations, turn on Enable Live Mode (it applies your custom code to the live site) and click Save changes so all your members see them. Enjoy your newly personalized group!

The Save changes button

FAQs

Q: How do I check how my group looked before adding the code?
A: Add customCode=false to the end of your community's URL in the address bar and press Enter. This turns off custom code for your current session only. To turn it off for all your members, switch off Enable Live Mode in Settings > Branding and click Save changes.

Q: What should I do if I'm experiencing issues in a community after applying custom code?
A: It's important to find out whether your custom code is causing the issue. Add customCode=false to the end of the community URL and press Enter. This disables custom code for your current session only. If the issue goes away, your custom code likely needs adjusting. If you've just switched to the new community, older custom code is the most likely cause, so preview and update it first.

Q: How can I use different styles for dark mode and light mode?
A: Use the .dark class in your CSS to style dark mode. FG Funnels adds this class automatically when night mode is on. Avoid very broad selectors, such as div:nth-of-type(2), unless you're sure they won't change other parts of the page. Preview and test both modes.

Q: My branding went back to the default colors after I switched. What should I do?
A: The new community uses its own default colors. Open your group's Settings > Appearance, choose a Community Theme or use the Customise tab to reapply your colors, and click Save changes. Then recheck your group.