Change text color and style on stock status message

Hi there,

How can I change text color and (if possible) wrap a border around the stock status message on product pages?

It would be perfect to be able to get a special color if the item is in stock and a different color if the item is sold out.

Preview https://aghz84ktu8jixb6e-41288433815.shopifypreview.com

Thanks in advance!

Hi @entranced ,

This is Victor from PageFly - Landing page builder, I’d like to suggest this idea for solution:

Step 1. Go to Online Store → Theme → Edit code
Step 2. Open your theme.liquid theme file
Step 3. Paste below code before :


Note: You can change color value to fit your store

Hope my answer will help you.

Best regards,

Victor | PageFly

Wow! That was quick :slightly_smiling_face:

Thanks a lot Victor :slightly_smiling_face: