CRMJettyBack to crmjetty.comContact us
Menu
Docs / Guides

CRMJetty Portal

Works with
Docs / Dynamics 365

Dynamics 365 Customer Portalv6.3.0

Docs / Salesforce

Salesforce Customer Portalv6.3.0

Docs / Business Central

Business Central Portal

Guides / Branding and navigation

How to Add Custom CSS to CRMJetty Portal

4 min readUpdated
Short answerGo to Settings → Portal Settings → Site Management, edit your site and open the CSS Editor. Add your CSS, adjusting class names and properties to the sections you want to style, then save. Give sections and widgets your own HTML class or ID to target them.

The theme settings cover fonts, colors and menus. When you need more, such as a different card style, extra spacing or a branded section, add custom CSS. The CSS Editor applies your styles across the portal site, and you can target specific sections and widgets with your own HTML classes and IDs.

Before you start

Add CSS in the CSS Editor

  1. Go to Settings → Portal Settings → Site Management.
  2. Open the site you want to style for editing.
  3. Open CSS Editor.
  4. Add or paste your CSS.
  5. Adjust the class names and CSS properties to the sections you want to change.
  6. Select Save.
Site Management → CSS Editor with custom CSS entered and the Save button
Site Management → CSS Editor with custom CSS entered and the Save button
Site Management → CSS Editor with custom CSS entered and the Save button
Site Management → CSS Editor with custom CSS entered and the Save button

Open the portal and check your changes on the pages they affect. If you run several sites, add the CSS to each site that needs it. See How to Create and Manage Multiple Portal Sites.

Target a section or widget with your own class or ID

Give the element a class or ID in Page Builder, then use it in your CSS. This is more reliable than targeting the portal’s built-in class names.

  1. In Design → Page Builder, edit the page.
  2. Select the Settings icon on the section or widget.
  3. Enter an HTML Class, an HTML ID, or both.
  4. Select Save, then publish the page.
  5. Add CSS for that class or ID in the CSS Editor.
Setting How to use it
HTML Class One or more classes, separated by commas. Reuse a class on several elements on the same page.
HTML ID A unique ID for one element per page. The portal adds the prefix custom- automatically, so the ID welcome becomes custom-welcome.

Important: Do not use spaces in classes and IDs. If you need special characters, use only hyphens (-) or underscores (_).

For example, if you give a section the class promo-panel and a widget the ID welcome:

.promo-panel {
  background-color: #f4f7fb;
  border-radius: 8px;
  padding: 24px;
}

#custom-welcome h2 {
  font-size: 28px;
}

For more, see How to Add Custom HTML IDs and CSS Classes to Widgets.

Tip: Change one thing at a time and check the result in the portal before you add more. If a page looks wrong after a change, remove the last rule you added and save again.

Add custom JavaScript

To change behavior rather than style, use the code editor of a page, form or list. See How to Add Custom JavaScript to the Portal.

Troubleshooting

Your CSS has no effect: Check that you saved in the CSS Editor of the right site, that the class or ID in your CSS matches the one in Page Builder (including the custom- prefix for IDs), and that the page is published. Then reload the portal page, clearing the browser cache if needed.

Did this solve it?No, contact support