How to make variants show in the same row Dawn Theme

How to make variants show in the same row Dawn Theme

Domisana
Excursionist
31 0 8

Hi, I am wondering can someone help me with CSS to make my product page variants picked show in the same row?

Something like in the photo I attached, both on mobile and PC.

My website is domisana.com

Replies 4 (4)

websensepro
Shopify Partner
2119 265 315

 Hi @Domisana 

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.

variant-selects {
    display: flex !important;
    gap: 10px !important;
}
.product-form__input.product-form__input--dropdown {
    flex: 50% !important;
}

 

 

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!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP

Guleria
Shopify Partner
4183 812 1168

Hello @Domisana ,

 

Follow these steps:

1. Go to Online Store -> Theme -> Edit code

2. Open your base.css file and paste the following code at the bottom:

variant-selects { 
    display: flex !important;
    gap: 4px !important;
}
.product-form__input--dropdown {
    flex: 48% !important; 
}

 

Regards
Guleria

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Hi @Domisana 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (min-width: 749px) {
    .product__info-container variant-selects {
        display: flex;
        gap: 4%;
        width: fit-content;
        flex-wrap: nowrap;
    }

    .product-form__input {
        flex: 0 0 48% !important; 
        max-width: 48% !important; 
        box-sizing: border-box;
    }
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1734610149807.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Domisana
Excursionist
31 0 8

Thank you for the answer! I just noticed that I also have quantity which I would like to fit into the row as well. Could you please modify the code so all 3 fit into one row? 

Btw, on mobile, you see that variant is not entirely visible, it is cutWhatsApp Image 2024-12-19 at 13.14.56_1b7c1a86.jpg