Add the Add to Cart button to WooCommerce Shop and Category pages

TIPS

Nov 23, 2020 | WooCommerce Tips | 0 comments

Add the following to your child theme functions.php file.
[php]

// Add Add to Cart buttons to shop pages
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 );
[/php]

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

More Tips

Ad - Web Hosting from SiteGround - Crafted for easy site management. Click to learn more.

Cloudways Hosting

WPEngine Hosting

Pressable Hosting

AccuWeb Hosting

Ask the Divi Guy a Question

"*" indicates required fields