Jump to content

How to delete the add to cart button

Recommended Posts

Posted

Site URL: https://www.sfsmartshop.com

Hello I am trying to integrate with foxycart, and need to remove my add to cart button from each product. I tried the suggested code on other posts, 

.sqs-add-to-cart-button-wrapper {display:none !important;}


.product-quantity-select { display:none !important;}

 

But it doesn't seem to have any effect. Thanks in advance for your help

  • Replies 3
  • Views 756
  • Created
  • Last Reply
Posted
15 hours ago, creedon said:

Where did you install the code? I don't see it. If you installed then removed, please put it back so we can see why it's not working.

Hey sorry I had added and removed. I have now added the code to the design-Custom CSS. Thank you for your help.

Posted

The issue is that you've put the code inside a media query that says only do these rules when the screen is less than or equal to 768px.

@media only screen and (max-width: 768px) {
    #header #logoWrapper #logoImage img,#header #siteTitleWrapper #logoImage img {
        max-height:1000px;
        max-width: 100%;
        width: auto;
        height: auto
    }

    .sqs-add-to-cart-button-wrapper {
        display: none !important
    }

    .product-quantity-select {
        display: none !important
    }
}

Remove the code you added and put the following after the last } in the field.

.product-quantity-input,
.sqs-add-to-cart-button-wrapper

  {
  
    display : none;
    
    }

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.