Jump to content

Customizing Product Page with External Links

Go to solution Solved by tuanphan,

Recommended Posts

Howdy!

I customized some of my product pages using the code below to hide the "add to cart" button, the quantity and the variant, and it looks great on desktop but has a huge gap on mobile (see attached photo). 

Thanks for your help!

<style>
.product-quantity-input {display:none;visibility:hidden;}
.variant-option { display: none!important; }
.ProductItem-details .sqs-add-to-cart-button-wrapper { display: none; }
.ProductItem-details .ProductItem-details-excerpt a { 
    background: #DA4C58; 
    padding: 15px; 
    color: white; 
    text-decoration: none; }
</style>

Screenshot 2023-04-17 at 9.25.43 PM.png

Link to comment
  • Replies 4
  • Views 267
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • Solution
On 5/2/2023 at 11:53 PM, KelseyLenz said:

Change your code

.product-quantity-input {
    display: none;
    visibility: hidden;
}

to this

.product-quantity-input {
    display: none !important;
    visibility: hidden;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...

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.