How do I change the background of the variant select dropdown box?

Solved

How do I change the background of the variant select dropdown box?

hvstlco
Tourist
8 0 2

website: hvstl.co

password: tongai

 

I was wondering how I would change the background of this variant picker, and remove the border around it as well. Any help is appreciated!

 

hvstlco_0-1720726862024.png

 

Accepted Solutions (2)
Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

Add this code. 

 

.select:before, .select:after, .select:hover.select:after, 
.customer select:before, .customer select:after,.customer select:hover.select:after {
    box-shadow: none !important;
} 

 

And Save. 

result:

Made4uoRibe_0-1720730854084.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.

View solution in original post

PageFly-Richard
Shopify Partner
4991 1118 1796

This is an accepted solution.

Hi @hvstlco 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
.product .select__select, .product .customer select, .product .select .icon-caret, .product .product .customer select + svg{
    background: red;
    color: white;
}
.product .select::after {
box-shadow: none;
}
</style>

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 6 (6)

Made4uo-Ribe
Shopify Partner
10038 2387 3014

Hi @hvstlco 

Check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

.select__select, .customer select, .select .icon-caret, .customer select + svg {
    background: red;
    color: white;
}

 

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

    I also change the color, if you dont want to include the text color just let me know. 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
hvstlco
Tourist
8 0 2

How do I remove the border aswell?

Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

Add this code. 

 

.select:before, .select:after, .select:hover.select:after, 
.customer select:before, .customer select:after,.customer select:hover.select:after {
    box-shadow: none !important;
} 

 

And Save. 

result:

Made4uoRibe_0-1720730854084.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
hvstlco
Tourist
8 0 2

Thank you very much!

PageFly-Richard
Shopify Partner
4991 1118 1796

This is an accepted solution.

Hi @hvstlco 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
.product .select__select, .product .customer select, .product .select .icon-caret, .product .product .customer select + svg{
    background: red;
    color: white;
}
.product .select::after {
box-shadow: none;
}
</style>

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

hvstlco
Tourist
8 0 2

Thank you very much aswell!