Hi Chris,
Thanks for reaching to us and appreciate your patience.
Can you please try below one?
document.addEventListener('DOMContentLoaded', function() {
function retirerButtons() {
document.querySelectorAll('.product_cat-accessories .wd-add-btn').forEach(button => {
button.remove();
});
}
retirerButtons();
const produitContainer = document.querySelector('.products, . product-quick-view.product');
if (produitContainer) {
const observer = new MutationObserver(() => {
retirerButtons();
});
observer.observe(produitContainer, { childList: true, subtree: true });
}
});
Regards,