Overview video
0:00 Brand colours in content templates
0:03 Content templates have four custom colour slots, Custom 1 to Custom 4, alongside the theme colours. You decide what each slot looks like, once, and then anyone editing a page can use your brand colours from a dropdown.
0:17 Each slot adds a fixed class to the page. A short CSS file gives each class a colour, for backgrounds and for text.
0:26 The file is uploaded once, in CSS Override.
0:30 On a content page, a section's background colour is set to Custom 1, and its text colour to a matching slot.
0:38 On the storefront, each section shows the brand colours from the CSS file.
0:44 It's built from a CSS file in CSS Override and the colour settings in the content template editor. The step-by-step guide on this page shows how to set it up.
Step-by-step video
0:00 Use your brand colours in content templates
0:04 In this tutorial we'll put brand colours into the Custom 1 to Custom 4 slots of your content templates, and use them on a page. You'll need to be comfortable writing a few lines of CSS.
0:16 Start with a CSS file. Each Custom option adds a fixed class. For a background colour, that's has-background-custom, then the slot number. Give each class the colour you want, and add important, so it wins over the theme.
0:29 For text, the classes are has-text-custom, one to four. Here, slot one is white, two is coral, three is navy and four is teal.
0:38 In the admin area, go to Content Management, then CSS Override. Under Upload a new CSS file, choose your file and click Upload. Uploading replaces the old file, so always add to your latest version.
0:52 Now go to Content Management, then Content Pages, and edit the page you want to style.
0:58 Make sure the Body editor type is Content Template Editor, with a template such as Builder.
1:05 Click the cog on a section to open Configure, and set Background color to Custom 1.
1:11 Then set Text colour to Custom 1 as well, so the text is white on the navy background. Click Ok.
1:19 Headings have their own colour setting. Open the Title's cog and set Color to Custom 2, for a coral accent.
1:26 Click Save and Continue Edit, then Clear cache in the top bar.
1:32 On your storefront, the first section uses slot one for both background and text, and the second uses a light background with navy text.
1:41 And the heading picks up the coral from Custom 2.
1:45 That's it. Change a colour in your CSS file, upload it again, and every section using that slot updates across your storefront.
No lines in the transcript match your search.