We are on the homepage. What class will the body tag have when using `<body class="page-{{ page.handle }}">`? 🏷️

### Explanation When using `` on the homepage, the output will be: ```html ``` This happens because: - On the homepage, `page.handle` is empty - The homepage is not a "page" object in Shopify - Only the static "page-" prefix remains Key points: - Homepage is a special template, not a page - To target homepage specifically, use `template.name` instead - For homepage-specific styling, consider using `{% if template.name == 'index' %}` Reference: [Shopify Template Object](https://shopify.dev/docs/api/liquid/objects/template)

Answer Options:

  • page-home
  • page-index
  • page-
  • page-homepage
Shopify Free Test
← PreviousQuestion 1 of 1Finish →
00
← PreviousFinish →
Copyright ©Michael Bollin. Found some mistake?[email protected]