Help CenterContact support
All Custos: EU Compliance articles

How do I show the energy label on my store?

Updated

On this page
  1. Turn on the app embed
  2. What shoppers see
  3. The look
  4. Collection and search pages
  5. Turning it off

The module shows the label through Custos’s app embed. Nothing changes in your theme’s code.

Turn on the app embed

In Online Store > Themes > Customize > App embeds, switch on Custos and save. The setup guide’s Open theme editor opens this page for you. The one embed serves every Custos module you turned on.

The embed places the class arrow on product pages after the price, or after the add-to-cart form when the theme has no price element there. On the Storefront page, Place the arrow before moves it before the first element that matches a CSS selector, for example .product__price.

What shoppers see

A coloured arrow with the energy class, on the scale the label uses: the class letter in white with a black outline, in the colour of that class on the label, and as tall as the product’s price. Tyres show the fuel efficiency class on the tyre label’s five colours. Clicking the arrow opens the label image in a window on the page; the product information sheet is linked next to it. For a product with variant labels, the arrow follows the selected variant, also when the theme reloads the price for it. The arrow shows only when the label has a class and a label image or PDF; products without one show nothing. In the theme editor, a product without a label shows a note that shoppers never see.

The words around the arrow (the sheet link, the window’s title, the screen reader text) follow the storefront’s language.

The look

On Energy labels > Storefront choose the widget:

  • Arrow: the class arrow with the sheet link next to it.
  • Arrow with links: the arrow with the sheet and label PDF links below it.
  • Compact: a smaller arrow for tight product pages.

Sheet link text replaces the default link text; leave it empty to use the default in the shopper’s language. The preview shows the result as you change it. Save with the save bar; the theme picks up the change on the next page load. The page also shows whether the app embed is on in your published theme.

Collection and search pages

With Settings > More options > Show the class on collection and search pages, the app embed adds the class to product cards on collection and search pages: a small class arrow under the product title that opens the same label window when clicked.

Turning it off

Turning the module off on the Rules page removes the arrows from every page at once; the app embed keeps serving your other Custos modules.

Built and supported by StoreFleet, Shopify app developers since 2021.