Add variant line break?

Hi all,

Hope you are well. I would like to add a line break to the end of each variant option in the product page.

Please find below an example. May I know how can I do that?

Thanks very much in advance.

Kind regards,

JoeySmith

Hi @ali768 ,

The URL is https://xer6vq-gd.myshopify.com/products/t-shirt

The passcode is gemini88

Thanks

Thanks @ali768 , but I would like Color to be underneath Size, not next to Size. Would it be possible? Thanks a lot.

Hello, @JoeySmith

  1. Go to Online Store
  2. Edit Code
  3. Find theme.css/base.css file
  4. Add the following code in the bottom
.product-form__input--pill input[type=radio]+label {
    display: table;
    width: 120px !important;
}

Thanks!

Hi @JoeySmith 1. Go to Online Store → Theme → Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

.product-form__input--pill input[type=radio]+label {
    display: block !important;
    width: 139px !important;
}

Result:

If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!

1 Like

Thank you @websensepro it works !