
08-07-2019, 11:10 AM
|
 |
Ecwid Team
|
|
Join Date: Jun 2016
Posts: 109
|
|
Hi Rowan!
I'm Kenga from Ecwid Team. Thanks for your message.
You need to replace this line of your code:
Code:
dragElement(document.getElementById(("Icon")));
with this one:
Code:
dragElement(document.querySelector('.ec-minicart')
In order to hide the counter, add this CSS code in your custom CSS theme in Ecwid Control panel > Design:
Code:
.ec-minicart.ec-minicart--pill.ec-minicart--s .ec-minicart__counter,
.ec-minicart.ec-minicart--pill.ec-minicart--m .ec-minicart__counter,
.ec-minicart.ec-minicart--pill.ec-minicart--l .ec-minicart__counter,
.ec-minicart.ec-minicart--pill.ec-minicart--xl .ec-minicart__counter,
.ec-minicart.ec-minicart--pill.ec-minicart--xxl .ec-minicart__counter {
display: none;
}
Check this guide on how to add the CSS codes in your Ecwid store:
Try this out and let us know the results. It will be cool if you share the link to the published page where we can see how the scripts and CSS codes are executed.
Have a nice day!
__________________
Kenga
Ecwid team
|