How do I change how the food label looks on my product page?
On this page
Open Storefront in the app menu to choose the look of the food label that customers see on your store. A new store starts on the recommended look. A store that already has the block starts from what the block shows today, including a collapsed label, its heading and its colors, read from your published theme. Changes go live after you click Save. In the theme editor you only add and move the Food information block.
Steps
- Open Storefront.
- Pick a widget: Open table shows everything on the product page, Collapsed shows a heading the shopper opens.
- To fine-tune, open the customisation section: corners, spacing, text size and colours.
- Under the label’s own options, pick a layout (Table, Accordion, Compact or Information cards) and a label style (Theme Match, Minimal, Soft Card, Organic, Artisan, Bold Market, Editorial or Dark Premium). Colours you choose win over the style.
- Optionally turn on allergen icons and diet badges, change or hide the heading, and set a text or border color.
- Check the preview, then click Save. Reset to recommended brings back the recommended look; your custom CSS stays.
Custom CSS
- Open Advanced.
- Turn on Enable custom CSS and enter your CSS. It applies to this widget across your store, not to the rest of your theme.
- Start from a widget class, for example
.etiketto-food.
Colors, typography, spacing and borders are supported. External resources, CSS nesting and global selectors are not. Use !important to override an inline color variable. Clear CSS removes the CSS from your draft.
CSS you saved under the old class name .eu-food in the app keeps working. CSS you added directly to your theme that targets .eu-food has to be changed to .etiketto-food.
Verify it worked
- The preview updates as you type CSS. After Save, “Custom CSS active” shows while it is on.
- The page shows whether the block is on your theme, with links to add it and to open your store.
- Open your product page to see the real result.
Troubleshooting
You see “Check the CSS syntax.”, “Use a supported widget selector.” or “This property is not supported.”
The error shows the line and column. Fix that line. Save is blocked while enabled CSS has errors.
You see “Use width media queries or the etiketto-food container.”
Only width media queries and the etiketto-food container are supported. Change or remove the at-rule.
The preview doesn’t match your CSS
The preview uses the last valid CSS until the errors are fixed.