Dear all,
my english is not perfect - I am from germany. Sorry for this in advance 
I use the dawn theme and want to strikethrough and additionally greyout sold out variants. (If possible change all into a light grey). I tried to do this like the solution mentioned in this post (
https://community.shopify.com/c/shopify-design/input-slash-or-grey-out-sold-out-variants/td-p/1943426) and copied the code line into the mentioned css-file, but it doesnât work, nothing changed. I am a beginner without experience in coding. Maybe somebody can give me a help please?
Here is one article of my shop with sold-out variants: https://onlineshop.sisento.de/products/lorenzi-herrenschuhe-kroko-braun
Thank you very much!
Karin
To add strikethrough and gray out sold-out variants in the Dawn theme, youâll need to make modifications to the themeâs code. Hereâs a step-by-step guide to help you achieve this:
- From your Shopify admin, go to âOnline Storeâ and click on âThemes.â
- Find the Dawn theme and click on âActions,â then select âEdit code.â
- In the theme code editor, locate the file named
theme.css.liquid in the âAssetsâ folder. If you canât find it, look for a similar file that contains the themeâs main CSS code.
- Open the
theme.css.liquid file and add the following code at the bottom:
/* Strikethrough and gray out sold-out variants */
.variant-sold-out .variant-label {
text-decoration: line-through;
color: #888888;
}
â
Hello and thank you for your fast reply,
I am sorry but in my Assets-folder there is no theme.css.liquid file. Please see the screenshot which files are contained: