Home Forums Basel support forum Add Color Box around Variable Size Options on Product Page

Add Color Box around Variable Size Options on Product Page

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #105007

    ochow7
    Participant

    Hello,

    (1) On our product page, we would like to add a box around the variable size options. See example via attachment. Notice the selected size is colored in and the non-selected size is greyed out.

    (2) Lastly, when you select a variable an (x clear) option appears the right of variable so that you can unselect the variable. How can we hide/remove this?

    I appreciate your help. Thanks.

    Attachments:
    You must be logged in to view attached files.
    #105073

    Hello,

    Add the code to the Theme Settings > Custom CSS > Global:

    body .single-product-content .variations .swatches-select>div:hover {
        border: 2px solid red;
    	  padding:3px;
    }
    body .single-product-content .variations .swatches-select>div {
         border: 2px solid blue;
    		  padding:3px;
    }

    Change the color as per your needs.

    Best Regards

    #105088

    ochow7
    Participant

    Thanks

    The two css codes that you provided allow me to edit the boxes when on hover, and when not-selected.

    (1) However, I need a code so that I can change the color WHEN SELECTED – currently it defaults to black when selected and I want to change it to #0a3d4f

    (2) I also need a css code that get’s rid of the (x clear) script that pops up when you select an option.

    I appreciate your help.

    Thanks

    #105113

    Hello,

    Add this code:

    body .single-product-content .variations .swatches-select .active-swatch {
         border: 2px solid green;
    		  padding:3px;
    }
    body .reset_variations{
    display:none;
    }

    Best Regards

    #105200

    ochow7
    Participant

    Thanks, your code fix the box issue, but did not fix the (x Clear) section

    See attached photo.

    I want this to not show up at all. Let me know and thanks.

    Attachments:
    You must be logged in to view attached files.
    #105240

    Hello,

    Try this code:

    .reset_variations{
    display:none!important;
    }

    Best Regards

    #105534

    ochow7
    Participant

    It worked. Thank you.

    Please close this ticket.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Add Color Box around Variable Size Options on Product Page’ is closed to new replies.