0

On my child theme,

I created this:

remove_action('woocommerce_single_product_summary','woocommerce_template_single_excerpt',20);
add_action('woocommerce_single_product_summary', 'woocommerce_template_single_excerpt',30);

The add_action is working, but not the remove_action

What happens is, the woocommerce_template_single_excerpt gets duplicated with the add_to_cart in the middle of the two.

I am using shopkeeper theme in woocommerce. I hope someone can help.

1

Actions (and filters) can be removed only after they had been set, therefor you will have to figure out when in the execution path the woocommerce_template_single_excerpt is being added, and remove it only after that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.