Jump to content

Code to remove button

Recommended Posts

  • Replies 22
  • Views 1.5k
  • Created
  • Last Reply

@Omesnage Can you share site url or template name?

or try CSS ( Home > Design > Custom CSS)

First, you need to find Page ID. See how to: https://beaverhero.com/squarespace-how-to/#HowtoFindPageID

Then, use


/* Remove Quantity */
body#collection-56099b55e4b0ec7b8a89d273 .product-quantity-input {
       display: none !important;
   }
/* Remove Add to Cart */
body#collection-56099b55e4b0ec7b8a89d273 .sqs-add-to-cart-button-wrapper {
       display: none !important;
   }




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

@Omesnage Each page will have different Page ID.You need to find Page ID. See how to: https://beaverhero.com/squarespace-how-to/#HowtoFindPageID

Then, use


 /* Remove Quantity */
body#collection-56099b55e4b0ec7b8a89d273 .product-quantity-input {
        display: none !important;
    }
 /* Remove Add to Cart */
body#collection-56099b55e4b0ec7b8a89d273 .sqs-add-to-cart-button-wrapper {
        display: none !important;
    }




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

@Omesnage Each page will have different Page ID.You need to find Page ID. See how to: https://beaverhero.com/squarespace-how-to/#HowtoFindPageID

Then, use


 /* Remove Quantity */
body#collection-56099b55e4b0ec7b8a89d273 .product-quantity-input {
        display: none !important;
    }
 /* Remove Add to Cart */
body#collection-56099b55e4b0ec7b8a89d273 .sqs-add-to-cart-button-wrapper {
        display: none !important;
    }




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

and for many pages


/* Remove Quantity */
 body#collection-56099b55e4b0ec7b8a89d273 .product-quantity-input, body#collection-56099b55e4b0sdfsd233453445 .product-quantity-input {
         display: none !important;
     }
  /* Remove Add to Cart */
 body#collection-56099b55e4b0ec7b8a89d273 .sqs-add-to-cart-button-wrapper, body#collection-56099b55e4b0sdfsd233453445 .sqs-add-to-cart-button-wrapper {
         display: none !important;
     }




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

Hi Tuanphan,Hope you're going fine...I have a clone of a product page and I don't want the the products of this clone to appear when you use the search bar, do you think it's possible ?If not ok, I'd like to hide the price button, on certain page, like the code you gave me for the "qty" and "add to basket".Many thanksOlivier

Link to comment

@Omesnage (1) I think you need to use custom code (but it is complicated, out of my ability).

(2) To hide price, you should share url to check, or try this code (Add to Home > Design > Custom CSS).


body#collection-56099b55e4b0ec7b8a89d273 #productList .product-price {
   display: none !important;
}

Replace body#....273 with Product Page/Page ID. Each page will have different ID: https://beaverhero.com/squarespace-how-to/#HowtoFindPageID

(3) You should tag me when you have a new question. It seems that SS only sends email notifications, if someone tags me.

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

@Omesnage Yes. You can with custom code.

is it "check out text"? You can this code first, if it doesn't work, please share url to check.


.checkout-button span {
   visibility: hidden;
}
.checkout-button span:after {
   visibility: visible;
   content: "New Checkout Text";
   margin-left: -80px;
}

Reference: https://beaverhero.com/indigo-template-squarespace/#TranslateCheckOut

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

@Omesnage Yes. You can with custom code.

is it "check out text"? You can this code first, if it doesn't work, please share url to check.


.checkout-button span {
   visibility: hidden;
}
.checkout-button span:after {
   visibility: visible;
   content: "New Checkout Text";
   margin-left: -80px;
}

Reference: https://beaverhero.com/indigo-template-squarespace/#TranslateCheckOut

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

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.