Home › Forums › WoodMart support forum › Comment out code from child theme Comment out code from child theme This topic has 3 replies, 2 voices, and was last updated 6 years, 7 months ago by Artem Temos. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts May 18, 2018 at 9:50 am #58221 newsprinceParticipant Hello. Is this possible to comment out or remove this code from inc/woocommerce.php remove_action( ‘woocommerce_before_shop_loop_item_title’, ‘woocommerce_template_loop_product_thumbnail’, 10 ); add_action( ‘woocommerce_before_shop_loop_item_title’, ‘woodmart_template_loop_product_thumbnail’, 10 ); from the child theme so that it doesn’t overwritten with every new update? We want the yith badge managment plugin to work. Thank you. May 18, 2018 at 10:05 am #58225 Artem TemosKeymaster Hi, Try to add the following PHP code snippet to the child theme functions.php file to do this add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 ); remove_action( 'woocommerce_before_shop_loop_item_title', 'woodmart_template_loop_product_thumbnail', 10 ); May 18, 2018 at 11:16 am #58240 newsprinceParticipant Ok it didn’t work at first but i got it to work with this: add_action( ‘woocommerce_before_shop_loop_item_title’, ‘woocommerce_template_loop_product_thumbnail’, 9 ); add_action( ‘init’, ‘remove_actions_parent_theme’); function remove_actions_parent_theme() { remove_action( ‘woocommerce_before_shop_loop_item_title’, ‘woodmart_template_loop_product_thumbnail’, 10 ); }; Thank you very much May 18, 2018 at 11:25 am #58247 Artem TemosKeymaster We are glad that you sorted it out. Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to create new topics. Login / Register