How to remove the boarder boxes from the size options on a product page?

Solved

How to remove the boarder boxes from the size options on a product page?

emilyaugstudios
Pathfinder
122 1 58

Hi community! I dont suppose anyone knows how to remove the boarder boxes from the size options on a product page? I want it to display as a link underline style instead.

 

URL (Symmetry theme) – https://pantee.co.uk/?_ab=0&_fd=0&_sc=1&preview_theme_id=144118972631

 

Current Look –

Screenshot 2024-09-11 at 15.52.14.png

 

What we are aiming for –

Screenshot 2024-09-11 at 15.52.40.png

Accepted Solutions (2)

BSSCommerce-B2B
Shopify Partner
1703 510 570

This is an accepted solution.

@emilyaugstudios ,

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file theme.liquid.

Step 3. Add this code above </body>

 

<style>
.opt-btn:checked + .opt-label,
.opt-label {
   border: none!important;
   box-shadow: none!important;
}
.opt-btn:checked + .opt-label > span {
   text-decoration: underline!important;
}
</style>

 

Result:

BSSCommerceB2B_1-1726066943762.png

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

BSSCommerce-B2B
Shopify Partner
1703 510 570

This is an accepted solution.

Ok  change the  previous code like this

<style>
.opt-btn:checked + .opt-label,
.opt-label {
   border: none!important;
   box-shadow: none!important;
}
.opt-btn:checked + .opt-label > span {
   text-decoration: underline!important;
}
.opt-btn.is-unavailable + .opt-label {
  background: none!important
}
</style>

Result:

BSSCommerceB2B_0-1726070818630.png

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Replies 9 (9)

BSSCommerce-B2B
Shopify Partner
1703 510 570

This is an accepted solution.

@emilyaugstudios ,

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file theme.liquid.

Step 3. Add this code above </body>

 

<style>
.opt-btn:checked + .opt-label,
.opt-label {
   border: none!important;
   box-shadow: none!important;
}
.opt-btn:checked + .opt-label > span {
   text-decoration: underline!important;
}
</style>

 

Result:

BSSCommerceB2B_1-1726066943762.png

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

BSSCommerce-B2B
Shopify Partner
1703 510 570

@emilyaugstudios ,please copy the newest code i've just edited 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

emilyaugstudios
Pathfinder
122 1 58

Thank you for the help! Is there a way to make the underline only appear on the selected size choice? Also do you know how I can reduce the padding between each size option too now as they look very spaced out without the border?

 

Current look –

Screenshot 2024-09-11 at 16.04.30.png

 

What I'd like –

Screenshot 2024-09-11 at 15.52.40.png

emilyaugstudios
Pathfinder
122 1 58

@BSSCommerce-B2B The new code you've added is a lot better thank you! Just the padding to figure out now, I really appreciate the help!

BSSCommerce-B2B
Shopify Partner
1703 510 570

@emilyaugstudios,  glad to hear that 😊 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

BSSCommerce-B2B
Shopify Partner
1703 510 570

Have you fixed it yet? If my solution is helpful, please like and mark the solution 😍

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

emilyaugstudios
Pathfinder
122 1 58

Hi @BSSCommerce-B2B – I'm just wondering if you know how to remove the 'sold out' boxes from the size options, like the way we did above? Is it possible to just have the size option display grey/lighter instead of black when it is sold out so customers know?

Screenshot 2024-09-11 at 16.57.49.png

 

 

BSSCommerce-B2B
Shopify Partner
1703 510 570

This is an accepted solution.

Ok  change the  previous code like this

<style>
.opt-btn:checked + .opt-label,
.opt-label {
   border: none!important;
   box-shadow: none!important;
}
.opt-btn:checked + .opt-label > span {
   text-decoration: underline!important;
}
.opt-btn.is-unavailable + .opt-label {
  background: none!important
}
</style>

Result:

BSSCommerceB2B_0-1726070818630.png

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

emilyaugstudios
Pathfinder
122 1 58

Thank you 🙏