DocsStorefront
Page builder
Order and hide sections on the loyalty page, widget panel and account page, set who sees each, add custom code, then publish or restore versions.
The Page builder arranges what shoppers see on three surfaces: the loyalty page, the home screen of the widget panel, and the loyalty page in customer accounts. You set the order of sections, hide the ones you don't want, choose who sees each loyalty page section, and add your own code blocks. Changes stay in a draft until you publish them.
Colors, fonts and the launcher are set on Store design. See Design.
The three surfaces
Choose the surface under What to edit.
| Surface | Sections, in their default order |
|---|---|
| Loyalty page | Page header, How it works, Ways to earn, Rewards, VIP tiers, Challenges, Refer a friend, Activity, Questions, plus your custom code blocks |
| Widget panel | Friend's discount, Your codes, Next reward, Challenges, Rewards, Ways to earn, Refer a friend, VIP tiers, Activity |
| Customer account | Points balance, Rewards, Ways to earn, Challenges, Refer a friend, Activity |
The first time you open the builder, it starts from what your store shows today, including the section checkboxes on Store design. On the loyalty page, Challenges and Activity start hidden.
Built-in sections can be hidden but not deleted, and each appears once. A section with nothing to show for a visitor (for example Activity for a guest, or VIP tiers when you have no tiers) is left out automatically.
The customer account surface cannot be previewed in the builder, and custom code is not available there. See Checkout and customer accounts.
Reorder, show and hide
- Drag a section in the Sections list, or use its move up and move down buttons.
- Use the show and hide button on a row, or Show this section in Settings on the right.
Who sees a section
On the loyalty page, each section has Who sees it:
- Everyone
- Members only
- Guests only: visitors who are not members, including signed-in customers who haven't joined.
By default "How it works" is for guests only, Activity is for members only, and the rest are for everyone. Panel cards and customer account sections have no audience setting.
Section settings
Select a section to see its settings.
| Surface | Section | Setting |
|---|---|---|
| Loyalty page | Page header | Show the points card (on by default) |
| Loyalty page | Ways to earn, Rewards | Items to show: 0 to 24, where 0 shows all of them |
| Loyalty page | Activity | Items to show: 1 to 20, default 10 |
| Widget panel | Rewards | Items to show: 1 to 10, default 3 |
| Widget panel | Ways to earn | Items to show: 1 to 10, default 4 |
When the panel has more items than it shows, the card gets a link to see them all.
Custom code blocks
On the loyalty page, Add custom code block adds a block with your own HTML, CSS and JavaScript. Each block has a Name (only you see it), a Width (Page width or Full width) and an audience. Page CSS & JS holds code for the whole page.
| Limit | Value |
|---|---|
| Custom blocks per page | 20 |
| Block name | 60 characters |
| HTML per block | 30,000 characters |
| CSS per block | 20,000 characters |
| JavaScript per block | 30,000 characters |
| Page CSS, page JavaScript | 30,000 characters each |
| Whole layout | 400,000 characters |
Code over a limit is never cut short: the draft cannot be saved until you shorten it.
Custom code runs on the loyalty page only, not in the panel or in customer accounts. A block's code is sent to every visitor, whatever its audience, so don't put anything secret in it. How to write blocks, the values you can show and the JavaScript helpers are in Custom code.
Draft and publish
- Make your changes. The status shows Unsaved changes.
- Click Save in the save bar to store them as a draft ("Draft saved"). The status becomes Draft not published. Your store does not change.
- Click Publish. In Publish layout, add an optional Note of up to 200 characters, for example what changed, and confirm.
Publishing uses what is on screen, unsaved changes included, and the draft is cleared. Customers see the new layout as soon as it is live. If the layout contains JavaScript, the dialog warns that it will run for every visitor.
Discard draft, at the top, removes the draft and any unsaved changes; the live layout does not change. Discard in the save bar drops only the changes you have not saved.
If someone else saved the layout while you were editing, you see "Someone else changed this layout". Click Reload to get the latest version; changes you had not saved are lost.
"Saved, but not live on your store yet" means the layout was published in Thrice but your theme could not be updated. Click Retry.
Version history
Version history keeps the 50 newest published versions. Publishing a 51st removes the oldest. Each entry shows the version number, the date, who published it ("a team member" or "a Shopify staff member"), your note, and badges for Live and Custom code.
- Preview shows that version in the preview without changing anything.
- Restore as draft loads the version into your draft. Nothing changes on your store until you publish.
- Publish this version puts it live again right away as a new version. Your draft stays as it is.
- Reset to the built-in layout makes your store show Thrice's built-in layout again, without custom code. The history is kept, but your draft is removed. The section checkboxes on Store design apply again.
Preview and safe mode
The preview shows the loyalty page or the panel with a sample customer and your real program. Switch Screen size (Desktop or Mobile), Visitor type (Member or Guest) and Preview language. Errors from custom blocks are listed under Errors in custom code.
Safe mode shows the page without any custom code. On your store, adding ?thrice-safe=1 to the loyalty page address does the same. If a version's code freezes a visitor's browser tab, that browser gets the page without custom code until you publish a new version.
What viewers can do
Team members with the Viewer role see the builder read-only. They can look around and use the preview, but cannot change the layout, publish or open earlier versions. See Team and sign-in.