Single use widgets
Certain widgets, such as Calendar, Social Learning, Compliance and Leaderboard, should only be used once per page. Using them multiple times can lead to performance issues, especially for widgets like the calendar, which require significant resources to load sessions.
Widget sizing guidelines
Widgets such as Calendar, Leaderboard, Social, and Compliance should be placed in layouts with a minimum width of one-third of the page. Single card widgets are best suited for this width to ensure optimal display. Widgets like the Calendar and Compliance (expanded view) are designed for half-width layouts to offer a better user experience. For other layout sizes, widgets will adjust responsively to fit the available space and maintain usability.
Using widgets within these recommended size guidelines enhances overall user interaction.
Customization guidelines
Default pixel distances
Vertical distance: The default vertical distance between widgets is 80 pixels.
Horizontal distance: The default horizontal distance between widgets is 20 pixels.
Custom CSS
Users can override default distances and other visual properties using custom CSS.
Steps for customization:
- Inspect the page elements to identify CSS classes.
- Apply changes at the global level, widget level, or page level.
For example, to reduce the vertical distance between widgets, modify the CSS property for the relevant class.
Menu positioning
Menus can be positioned at the top or left of the page. Further adjustments can be made using custom CSS.
Feature-specific recommendations
Social Learning and Gamification widgets
- If these features are disabled, administrators must manually remove the corresponding widgets from pages.
- Pages should be redesigned to ensure they remain functional and visually intact after disabling these features.
Handling custom code
Impact of updates
- Existing custom code (HTML, CSS, JS) injected into the backend may not work as expected after updates to Experience Builder.
- Users must rewrite their code to align with new UI changes, such as updated class names.
Front-end support
- Add custom code directly in the admin portal using HTML widgets or account-level CSS/JS blocks.
Disclaimer
- Custom HTML, CSS, and JavaScript customizations are supported; however, platform updates may occasionally require minor adjustments to custom code. We recommend testing customizations after major releases as part of regular maintenance.
General recommendations
Performance considerations
- Avoid exceeding the recommended widget limits to prevent performance degradation.
- Using resource-intensive widgets (for example, a calendar) multiple times on a page can significantly impact page load times.
Security considerations
- HTML widgets: You must ensure the code handles security issues like cross-site scripting (XSS) attacks, as these are outside the scope of Experience Builder’s control.
- Custom footer: When customizing the footer using HTML or CSS, ensure that the code adheres to security best practices.
Breaking changes
Updates to Experience Builder may introduce breaking changes for customizations. You must:
- Adjust the code to match new UI elements.
- Test the customizations after each update.
Additional notes
Custom CSS implementation
- You can inspect page elements, copy CSS classes, and apply their desired properties to customize layouts globally, at the widget level, or at the page level.
Widget IDs and Page IDs
Each widget and page have unique IDs that can be used for targeted CSS changes. This allows for customization at different levels:
- Global level: Apply CSS changes across all pages.
- Widget level: Apply CSS changes to specific widgets.
- Page level: Apply CSS changes to all widgets within a specific page.
Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an event