How to remove “Select Option” from shop loop
-
Hello, I need help removing “Select Option” from Shop loop, and back only “Add to cart” functionality, i tried this
add_action('wp_loaded', 'remove_custom_woocommerce_filters', 20); function remove_custom_woocommerce_filters() { if (class_exists('NM_PersonalizedProduct')) { remove_filter('woocommerce_product_add_to_cart_url', array('NM_PersonalizedProduct', 'loop_add_to_cart_url'), 10, 2); remove_filter('woocommerce_product_add_to_cart_text', array('NM_PersonalizedProduct', 'loop_add_to_cart_text'), 10, 2); } }
but it doesn’t work
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to remove “Select Option” from shop loop’ is closed to new replies.