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
New Member
4 0 1

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
6866 1636 2018

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

PageFly-Richard
Shopify Partner
4397 1006 1657

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!


PageFly - #1 Page Builder for Shopify merchants.


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
6866 1636 2018

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
hvstlco
New Member
4 0 1

How do I remove the border aswell?

Made4uo-Ribe
Shopify Partner
6866 1636 2018

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
hvstlco
New Member
4 0 1

Thank you very much!

PageFly-Richard
Shopify Partner
4397 1006 1657

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!


PageFly - #1 Page Builder for Shopify merchants.


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

hvstlco
New Member
4 0 1

Thank you very much aswell!