Search Divi Plus Documentation

Search for answers or browse our knowledge base.

All Topics
Print

After adding a product to the cart, the button changes to “View Cart.” How can I keep the “Add to Cart” button visible instead?

Our plugin works with AJAX, meaning that when a product is added to the cart, the “Add to Cart” button is replaced with the “View Cart” button. If you want to keep the “Add to Cart” button visible instead of showing “View Cart,” you can achieve this by adding the following CSS in Divi Theme Options > Custom CSS:

.dipl_woo_products .dipl_single_woo_product_add_to_cart a.added 
{
    display: block !important;
}
.dipl_woo_products .dipl_single_woo_product_add_to_cart a.added_to_cart
 {
    display: none !important;
}

This CSS ensures that the “View Cart” button remains hidden while keeping the “Add to Cart” button always visible.

Table of Contents