Hi everyone, I am using the Dawn theme and trying to create a specific class to the tag on your home page, for example, “home-page”?
My webpage is www.lakras.co
Thank you.
A user working with Shopify’s Dawn theme wants to add a custom class (e.g., “home-page”) to the <body> tag specifically on their homepage.
Proposed Solution:
<body> tag lineImplementation Context:
The user intends to use this class to apply a background image exclusively to the homepage while keeping other pages with a white background.
Current Status:
One participant reported the suggested method “doesn’t work,” indicating the solution may need refinement or alternative approaches. The discussion remains open with unresolved implementation issues.
Hi everyone, I am using the Dawn theme and trying to create a specific class to the tag on your home page, for example, “home-page”?
My webpage is www.lakras.co
Thank you.
Hi @lakras ,
To add a class to the <body> tag in Shopify, you can follow these steps:
Hope this suggestion can help you.
Thank you! Hopefully this helps me with the other thing I want to do where I assign a background image to only the home page, where as the other pages stay white …