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 );
Browse by industry
By platform
Shops, subscriptions and B2B
Custom builds and rebuilds
The projects I'm proudest of
Websites for small businesses, stores and service pros
Custom Divi & WordPress builds
Brand marks that fit the web
Fast, secure, managed hosting
Upgrade from Divi 4, safely
Updates, backups and fixes
Your PageSpeed scores by email
Theme setup done right
One-on-one Divi help
Orlando, FL
Divi Guy blog
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 a hand?
Book a Divi consultation and we can fix it together over Zoom, or ask for an estimate for bigger jobs.
0 Comments