Hello I want to remove this sold out text from my product page ! I only want to keep the sold out button ! You can see on the picture below in the red circle the part I want to remove ! I also want the price to be in center like the other size who are not sold out ! here is my product page link : https://www.five-pocket.com/products/pro-club-heavy-weight-t-shirt-white?variant=48361426190685
Hey @imazele
Follow these Steps:
-
Go to Online Store
-
Edit Code
-
Find theme.liquid file
-
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @imazele
A shopify way to do it is
-
Go to Online Store
-
Edit Code
-
Goto Assets → section-main-products.css
-
Search for .product .price–sold-out .price__badge-sold-out
-
Replace
.product .price--sold-out .price__badge-sold-out {
background: transparent;
color: rgb(var(--color-base-text));
border-color: transparent;
}
with
.product .price--sold-out .price__badge-sold-out {
background: transparent;
color: rgb(var(--color-base-text));
border-color: transparent;
display:none !important;
}
It should work. Thanks.
hi @imazele
Its SideNode! We will be happy to help you today.
You can try this code: it will be helpful to you
Go to the Online Store->Theme->Edit code->Assets->section-main-product.css>Add this code at the bottom.
span.badge.price__badge-sold-out {
display: none;
}
you can see the change also
If I was able to assist you, please remember to give it a Like and Mark it as the Solution!
Let me know if need further assistance
Regards,
SideNode


