This function adds the โAdd to Cartโ buttons on WooCommerce shop pages.
// Add "Add to Cart" buttons in Divi shop pages
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 );
This function adds the โAdd to Cartโ buttons on WooCommerce shop pages.
// Add "Add to Cart" buttons in Divi shop pages
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 );
Need help with this?
Hire me for a consultation and I’ll walk you thru the process.
More Tips
Tell me about your project. The more details the better.
"*" indicates required fields