Every widget has a Style card with a part for everything it shows, so you can restyle any widget without writing CSS. Anything you leave at its default uses your theme's look.
Where to find it
- For a promotion's own widget: at the top of the promotion's Widget design step. Pick a theme there, and click Customize each part to style the parts one by one.
- For any widget: open it from Widgets. The Style card is under the main form.
The preview beside the form updates as you change things. It's an approximation: in your store the widget uses your theme's fonts and colors.
Apply a theme
Every widget built from parts has the same five Themes: Card, Minimal, Bold, Soft, and Pop, each drawn as a small picture of that widget. Click one to apply all its colors at once, so nothing from a theme you picked before is left behind, then fine-tune any part. Pick the same theme on each widget to make them match.
- Card: a white box with fine grey outlines and dark buttons.
- Minimal: no box; text and outlines take your theme’s colors, so it suits a dark theme too.
- Bold: a dark box with bright yellow pill buttons.
- Soft: a warm peach box with orange pill buttons.
- Pop: thick black outlines and hard shadows on cream, with hot pink buttons.
Widgets with Match my theme’s colors and buttons turned on (the default) take your theme’s text, background, and main button under anything you leave at its default.
Style one part
- In Style, click a part, such as Widget box, Heading, or Add button. Its options open right under it, and the rest of the list and the preview stay in view. Hovering over a part outlines it in the preview.
- Change its options. Depending on the part, they're grouped as Text, Background, Border, Spacing, Layout, Effects, and for some parts Bar, Markers, Icon, Image, On hover, While loading, When selected, or When locked. More options shows the rest.
- Click another part to open it instead: one part is open at a time, so the one before it closes. Click the open part again to close it. An edited part is marked Edited.
Every button has Show an icon and Icon under Icon: turn it on and pick an icon to put it before the button's words, in their color.
Buttons that do something once pressed (Add, Add to cart, Apply, and a code's Remove) show they're working: a spinner turns beside their loading words, such as "Adding…", and they can't be pressed twice. Under While loading, set their Loading background and Loading text color, or turn off Show a spinner. To see it, pick While a button is working above the preview. Change the loading words under Widget text.
To undo, use the reset button beside an open part's name or an option, or Reset all at the top of the card.
Add your own CSS
- In Style, open Advanced.
- Write your CSS in Custom CSS. It applies to your whole store, so start each rule with the widget's selector shown in the help text, such as
[data-cs-widget="…"]. - Save the widget or the promotion.
The selector names the saved widget, so save a new widget once before writing its CSS.
Sale prices
Sale price on product pages and Sale price on product cards draw inside your theme's own price, so their Sale price and Regular price open in your theme's price type. A theme styles only their Saving badge.
Good to know
- For CSS and JavaScript that applies to all of Crownsale in your store, use Custom code on the Widgets page. See Style widgets with custom code.