Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Center the color palette on the product page in the Dawn theme for mobile view.

Solved

Center the color palette on the product page in the Dawn theme for mobile view.

Sivadarshan
Shopify Partner
171 1 28

I want to center the color palette on the product page only in mobile view, and the quantity selector takes 2 seconds to align in the center on mobile. How can I correct both of these issues?

 

Website : https://rugd-in.myshopify.com/

Password: rugged

 

Screenshot 2024-11-05 163332.png

 

Thanks in advance.

Accepted Solution (1)

Huptech-Web
Shopify Partner
1010 204 217

This is an accepted solution.

Hello! @Sivadarshan Please follow these steps to add this CSS code:

1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following code at the end of the file.

@media only screen and (max-width: 767px){
 .product-form__input--swatch {
    justify-content: center;
    text-align: center;
    margin: 0 auto;
 }
}

 

HuptechWeb_0-1730805140746.png

If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the solution.
Best regards
K.K

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

View solution in original post

Replies 4 (4)

Huptech-Web
Shopify Partner
1010 204 217

This is an accepted solution.

Hello! @Sivadarshan Please follow these steps to add this CSS code:

1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following code at the end of the file.

@media only screen and (max-width: 767px){
 .product-form__input--swatch {
    justify-content: center;
    text-align: center;
    margin: 0 auto;
 }
}

 

HuptechWeb_0-1730805140746.png

If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the solution.
Best regards
K.K

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
MHIZTINAS
Shopify Partner
3 0 3

I an see you have a nice store  There are some files attach to it can i share some help

 

MHIZTINAS
Shopify Partner
3 0 3

For centering the color palette on mobile only, you’ll likely need a targeted CSS media query. As for the quantity selector delay, it may be a JavaScript or CSS loading issue causing it to align slowly. I can help you refine these adjustments—let’s connect to go over the specifics!

MHIZTINAS
Shopify Partner
3 0 3

 

For centering the color palette only in mobile view, you’ll need to add a CSS media query specifically for smaller screens. This will allow you to adjust the alignment of the color palette without affecting the desktop view.The 2-second delay could be due to a few different factors, such as JavaScript loading time or CSS animation. By refining your scripts or optimizing CSS, you can likely eliminate that delay. Sometimes, minor JavaScript tweaks can speed up the alignment process by triggering it sooner.