Jump to content

Product Varient Drop Down Menu Doesn't Have an ID? Change Border color when selection is made?

Recommended Posts

Site URL: https://salmon-hibiscus-r5wx.squarespace.com/

pasword: dante123

hey guys.

Question 1
I managed to find the YUI ID for the border I want to change to red but of course we can't target YUI only. Been searching in the source file on what ID or other could be targeted but nothing changes the border. Can someone help me find the ID please? Picture attached

Question 2
When an answer is selected from the drop down menu, either yes or no, is it possible for the border to turn green? If yes, how can I change that?


Link to comment
On 5/10/2021 at 7:31 AM, hasher22 said:

Add to Design > Custom CSS

/* variant border */
.variant-select-wrapper, .product-details .variant-option select {
    border: 1px solid red;
/* variant border when select option */
[data-variant-in-stock="true"] .variant-select-wrapper {
    border-color: green !important;
[data-variant-in-stock="true"] .variant-option select {
    border-color: green !important;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.