Skip to main content
The referrals.liquid template controls the native Firmhouse referrals page opened by the dashboard referral banner. Edit it in the Customer Portal template editor to change the page layout, move or remove sections, and add your own content. Preview a saved version before publishing it. This page uses customer referral data and the existing native referral eligibility rules. Its content lives in template translations, independently of the legacy portal copy settings. ReferralCandy is a separate integration. Native referrals must be enabled for customers to access this page. Until you publish referrals.liquid, customers continue to see the legacy referral page, its configured copy, and the shared other.liquid wrapper. Draft previews are isolated from customers. Publishing a saved version or the Firmhouse default adopts the new page and enables the native banner in the default dashboard. Publishing Dashboard first does not enable that banner. Resetting Referrals restores the legacy page and hides the default banner again. Customizations to other.liquid are not copied into referrals.liquid; apply any required layout changes before publishing. Existing custom dashboards are not rewritten, and explicitly authored referral tags remain under their template’s control. Legacy presentation settings stay editable while the legacy page is active. The default template contains the invitation, copy/share controls, referral history, and empty-state HTML directly. Edit their markup, styles, labels, and conditions in Liquid, just like the orders template. Shared navigation uses {% navbar %}.

Available data

Page variables include page_title, page_byline, subscription, project, and referrals. Copy button labels use the referrals.copy_label and referrals.copied_label translations. Use {{ share_icons.email }}, {{ share_icons.whatsapp }}, and {{ share_icons.twitter }} to render the existing sharing icons. These contain SVG markup rendered by Rails; insert them without escaping. The surrounding links remain editable in Liquid. Escape codes, URLs, dates, and other text when inserting them into HTML. Customize referrals.message through template translations. The t filter sanitizes this rich text; the default template preserves line breaks with newline_to_br. Without a custom message, the page shows the localized reward explanation.
The default template hides copy/share actions without a code and hides history without successful referrals. Keep the existing clipboard Stimulus controller and its data attributes when customizing the copy button.