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

WooCommerce Tips

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


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

0 Comments

Submit a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.