Communities - How to Add Custom CSS/JS to Groups
Add custom HTML, CSS, and JS to GHL Customer Care community groups: go to Client Portal > Branding > Advanced, preview changes, and troubleshoot with customCode=false.
Assistants need to reach this page over the internet. While it is only running on your machine, these two buttons will not be able to load it.
On this page
Add custom CSS and JavaScript to your Communities Groups to fine‑tune branding, layout, and interactive behavior. This article shows where you can add your own CSS or JavaScript.
Note: GHL Customer Care does not provide guidance, recommendations, or support for custom code (including writing, debugging, or maintaining it).
TABLE OF CONTENTS
- What is Adding Custom CSS/JS to Groups?
- Key Benefits of Adding Custom CSS/JS
- How to Add Custom CSS/JS to Groups
- Frequently Asked Questions
- Related Articles
What is Adding Custom CSS/JS to Groups?
Adding custom CSS and JavaScript at the group level lets you change how your group looks and behaves without altering other parts of Communities. You can paste code directly, test safely, and then publish to members with confidence.
Key Benefits of Adding Custom CSS/JS
Precise branding: match fonts, spacing, and components to your brand guidelines.
Targeted changes: scope CSS/JS to a single group without impacting other groups.
Controlled rollout: use Test Preview before turning on Live Mode.
Better UX: enhance navigation or micro-interactions with small JS snippets.
Mobile flexibility: tailor responsive rules for phones and tablets.
How to Add Custom CSS/JS to Groups
Follow these steps to add custom code to your groups:
Log into your sub‑account.
Go to Memberships > Communities > Groups.
Step 2 of 9: Go to Memberships > Communities > Groups What this shows Step 2 of 9: Go to Memberships > Communities > Groups. What this shows Shows where to go for step 2 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". This screenshot accompanies step 2 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". At this point in the walkthrough you go to Memberships > Communities > Groups. The navigation path used here is Memberships > Communities > Groups. The next step is to login to the Group you want to customize. Where to goGo to Memberships > Communities > Groups. Buttons and menus referenced Memberships >Communities >GroupsGroupSettingsBrandingAdvanced OptionsCustom CSSCustom JavaScriptTest PreviewLive ModeOnNext stepLogin to the Group you want to customize.All 9 steps in this procedure
- Log into your sub‑account.
- Go to Memberships > Communities > Groups. this image
- Login to the Group you want to customize.
- Click Settings in the group.
- Click the Branding tab and scroll down to Advanced Options and click to expand it.
- Scroll to Custom CSS and Custom JavaScript fields and paste your code.
- Click Test Preview to review your changes.
- If satisfied, turn Live Mode On. If not, make adjustments and test again.
- Click Save to finish.
Login to the Group you want to customize.
Step 3 of 9: Login to the Group you want to customize What this shows Step 3 of 9: Login to the Group you want to customize. What this shows Shows what this covers for step 3 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". This screenshot accompanies step 3 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". At this point in the walkthrough you login to the Group you want to customize. The navigation path used here is Memberships > Communities > Groups. The next step is to click Settings in the group. What this coversLogin to the Group you want to customize. Buttons and menus referenced GroupMemberships >Communities >GroupsSettingsBrandingAdvanced OptionsCustom CSSCustom JavaScriptTest PreviewLive ModeOnNext stepClick Settings in the group.All 9 steps in this procedure
- Log into your sub‑account.
- Go to Memberships > Communities > Groups.
- Login to the Group you want to customize. this image
- Click Settings in the group.
- Click the Branding tab and scroll down to Advanced Options and click to expand it.
- Scroll to Custom CSS and Custom JavaScript fields and paste your code.
- Click Test Preview to review your changes.
- If satisfied, turn Live Mode On. If not, make adjustments and test again.
- Click Save to finish.
Click Settings in the group.
Step 4 of 9: Click Settings in the group What this shows Step 4 of 9: Click Settings in the group. What this shows Shows what to click for step 4 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". This screenshot accompanies step 4 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". At this point in the walkthrough you click Settings in the group. For context, this section explains: Log into your sub‑account. Go to Memberships > Communities > Groups. Login to the Group you want to customize. Click Settings in the group. Click the Branding tab and scroll down to Advanced Options and click to expand it. Scroll to Custom CSS and Custom JavaScript fields and paste your code…. The navigation path used here is Memberships > Communities > Groups. The next step is to click the Branding tab and scroll down to Advanced Options and click to expand it. What to clickClick Settings in the group. Buttons and menus referenced SettingsMemberships >Communities >GroupsGroupBrandingAdvanced OptionsCustom CSSCustom JavaScriptTest PreviewLive ModeOnNext stepClick the Branding tab and scroll down to Advanced Options and click to expand it.All 9 steps in this procedure
- Log into your sub‑account.
- Go to Memberships > Communities > Groups.
- Login to the Group you want to customize.
- Click Settings in the group. this image
- Click the Branding tab and scroll down to Advanced Options and click to expand it.
- Scroll to Custom CSS and Custom JavaScript fields and paste your code.
- Click Test Preview to review your changes.
- If satisfied, turn Live Mode On. If not, make adjustments and test again.
- Click Save to finish.
Click the Branding tab and scroll down to Advanced Options and click to expand it.
Step 5 of 9: Click the Branding tab and scroll down to Advanced Options and click… What this shows Step 5 of 9: Click the Branding tab and scroll down to Advanced Options and click to expand it. What this shows Shows what to click for step 5 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". This screenshot accompanies step 5 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". At this point in the walkthrough you click the Branding tab and scroll down to Advanced Options and click to expand it. The navigation path used here is Memberships > Communities > Groups. The next step is to scroll to Custom CSS and Custom JavaScript fields and paste your code. What to clickClick the Branding tab and scroll down to Advanced Options and click to expand it. Buttons and menus referenced BrandingAdvanced OptionsMemberships >Communities >GroupsGroupSettingsCustom CSSCustom JavaScriptTest PreviewLive ModeOnNext stepScroll to Custom CSS and Custom JavaScript fields and paste your code.All 9 steps in this procedure
- Log into your sub‑account.
- Go to Memberships > Communities > Groups.
- Login to the Group you want to customize.
- Click Settings in the group.
- Click the Branding tab and scroll down to Advanced Options and click to expand it. this image
- Scroll to Custom CSS and Custom JavaScript fields and paste your code.
- Click Test Preview to review your changes.
- If satisfied, turn Live Mode On. If not, make adjustments and test again.
- Click Save to finish.
Scroll to Custom CSS and Custom JavaScript fields and paste your code.
Step 6 of 9: Scroll to Custom CSS and Custom JavaScript fields and paste your code What this shows Step 6 of 9: Scroll to Custom CSS and Custom JavaScript fields and paste your code. What this shows Shows what to copy for step 6 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". This screenshot accompanies step 6 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". At this point in the walkthrough you scroll to Custom CSS and Custom JavaScript fields and paste your code. The navigation path used here is Memberships > Communities > Groups. The next step is to click Test Preview to review your changes. What to copyScroll to Custom CSS and Custom JavaScript fields and paste your code. Buttons and menus referenced Custom CSSCustom JavaScriptMemberships >Communities >GroupsGroupSettingsBrandingAdvanced OptionsTest PreviewLive ModeOnNext stepClick Test Preview to review your changes.All 9 steps in this procedure
- Log into your sub‑account.
- Go to Memberships > Communities > Groups.
- Login to the Group you want to customize.
- Click Settings in the group.
- Click the Branding tab and scroll down to Advanced Options and click to expand it.
- Scroll to Custom CSS and Custom JavaScript fields and paste your code. this image
- Click Test Preview to review your changes.
- If satisfied, turn Live Mode On. If not, make adjustments and test again.
- Click Save to finish.
Click Test Preview to review your changes.
If satisfied, turn Live Mode On. If not, make adjustments and test again.
Click Save to finish.
Step 9 of 9: Click Save to finish What this shows Step 9 of 9: Click Save to finish. What this shows Shows how to confirm for step 9 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". This screenshot accompanies step 9 of 9 in the "How to Add Custom CSS/JS to Groups" section of "Communities - How to Add Custom CSS/JS to Groups". At this point in the walkthrough you click Save to finish. For context, this section explains: Log into your sub‑account. Go to Memberships > Communities > Groups. Login to the Group you want to customize. Click Settings in the group. Click the Branding tab and scroll down to Advanced Options and click to expand it. Scroll to Custom CSS and Custom JavaScript fields and paste your code…. The navigation path used here is Memberships > Communities > Groups. How to confirmClick Save to finish. Buttons and menus referenced SaveMemberships >Communities >GroupsGroupSettingsBrandingAdvanced OptionsCustom CSSCustom JavaScriptTest PreviewLive ModeAll 9 steps in this procedure
- Log into your sub‑account.
- Go to Memberships > Communities > Groups.
- Login to the Group you want to customize.
- Click Settings in the group.
- Click the Branding tab and scroll down to Advanced Options and click to expand it.
- Scroll to Custom CSS and Custom JavaScript fields and paste your code.
- Click Test Preview to review your changes.
- If satisfied, turn Live Mode On. If not, make adjustments and test again.
- Click Save to finish. this image
Frequently Asked Questions
Q: Can I quickly disable custom code to troubleshoot?
Yes. Turn Live Mode off.
Q: What should I do if I'm experiencing issues in a community after applying custom code?
If you encounter any problems within a community where custom HTML, CSS, or JavaScript has been implemented, it's important to isolate whether the issue is being caused by the custom code. To do this, you can temporarily disable the custom code and see if the problem still occurs. Simply add 'customCode=false' to the end of the community's URL in your browser's address bar and press Enter. This action deactivates the custom code for your current session, allowing you to check if the issue persists without the customizations. If the problem is resolved with custom code disabled, it indicates that adjustments to your custom code may be necessary.
Q: How can I apply different styles for dark mode vs. light mode in my community portal?
To target night mode (dark theme) styles specifically, use the .dark class in your CSS. This class is automatically applied to the root when night mode is active.
Avoid using overly broad selectors like div:nth-of-type(2) unless you’re absolutely sure it won’t impact other parts of the page. Always preview and test both modes to ensure visual consistency.
Related Articles
Was this guide helpful?