View Single Post
  #2  
Old 01-13-2016, 11:19 AM
Antea's Avatar
Antea Antea is offline
Ecwid Team
 
Join Date: Nov 2015
Posts: 381
Default

Quote:
Originally Posted by leighgraham View Post
Hello, Ive been trying to get rid of the add more button on the product details page, however the code seems to not have any effect on it. I have been using

button.gwt-Button.ecwid-productBrowser-details-addMoreButton {
display: none;
}

but it still shows on my page.

the full code right now is

div.ecwid-productBrowser-details-qtyPanel,
td.ecwid-productBrowser-cart-itemsTable-cell-qty,
td.ecwid-productBrowser-cart-itemsTable-headerCell-qty {
display:none;
}
div.ecwid-productBrowser-productsGrid div.ecwid-productBrowser-price {
color: #000066;
}
div.ecwid-productBrowser-details div.ecwid-productBrowser-price {
color: #000066;
}
div.ecwid-productBrowser-cart-totalAmount {
color: #000066;
}
button.gwt-Button.ecwid-productBrowser-details-addMoreButton {
display: none;
}

am i doing something wrong?
Hello!
Thanks for reaching out!

The reason why the code you’re applying doesn’t hide the “Add More” button is that there’s been an update in Ecwid recently that changed certain elements (including the buttons).

I’ve made the necessary changes to the code so now it should work properly:
Code:
/*Removes QTY panel*/
div.ecwid-productBrowser-details-rightPanel div.ecwid-productBrowser-details-qtyPanel {
display: none !important;
}
/*Removes Add More button*/
div.ecwid-productBrowser-details-rightPanel .ecwid-btn--addMore {
display: none !important;
}
If you apply this code to your custom CSS theme in your Ecwid Control Panel > Settings > Design, the QTY field and the “Add More” button will be hidden from the Product Details page.

Just for your interest, there is an article in our Knowledge Base where you can find the instructions on how to identify the site’s elements: https://help.ecwid.com/customer/en/p...gn#findelement

If you have any further questions, we are always here to help.
__________________
Anna,
Ecwid Customer Care Team

More tips and hints on Ecwid use in our Help Center

Please click Thanks if my reply helped you.