We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

how do I change the position of the color swatch to the left and change the shape to a circle?

Solved

how do I change the position of the color swatch to the left and change the shape to a circle?

Ryusei
Excursionist
28 1 5
Accepted Solutions (2)

niraj_patel
Shopify Partner
2391 516 516

This is an accepted solution.

Hello @Ryusei 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
   .product-card__info fieldset.h-stack.wrap.justify-center.gap-1 {
        justify-content: flex-start !important;
        width: 100% !important;
   }
   label.color-swatch.border {
        border-radius: 50% !important;
  }
  :checked+.color-swatch{
      border-radius: 50% !important;
  }
</style>

niraj_patel_0-1724298940630.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Henry_dev
Shopify Partner
118 22 36

This is an accepted solution.

Hi @Ryusei  You can use this custom css code: 

.product-card .product-card__info {
justify-items: flex-start;
}
.product-card .product-card__info > fieldset.h-stack {
justify-content: flex-start;
}
.product-card .product-card__info .color-swatch {
border-radius: 50%;
}

you can add this code to: theme settings -> custom CSS 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
Feel free to

Email Me

---

Buy Me A Coffee

View solution in original post

Replies 4 (4)

Henry_dev
Shopify Partner
118 22 36

Hi @Ryusei Please share your store URL. I will check and help.

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
Feel free to

Email Me

---

Buy Me A Coffee

Ryusei
Excursionist
28 1 5
Henry_dev
Shopify Partner
118 22 36

This is an accepted solution.

Hi @Ryusei  You can use this custom css code: 

.product-card .product-card__info {
justify-items: flex-start;
}
.product-card .product-card__info > fieldset.h-stack {
justify-content: flex-start;
}
.product-card .product-card__info .color-swatch {
border-radius: 50%;
}

you can add this code to: theme settings -> custom CSS 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
Feel free to

Email Me

---

Buy Me A Coffee

niraj_patel
Shopify Partner
2391 516 516

This is an accepted solution.

Hello @Ryusei 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
   .product-card__info fieldset.h-stack.wrap.justify-center.gap-1 {
        justify-content: flex-start !important;
        width: 100% !important;
   }
   label.color-swatch.border {
        border-radius: 50% !important;
  }
  :checked+.color-swatch{
      border-radius: 50% !important;
  }
</style>

niraj_patel_0-1724298940630.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com