Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Best way to remove 'Product Description' heading? #250

Closed
DanielBakovic opened this Issue · 1 comment

2 participants

Daniel Bakovic Mike Jolley
Daniel Bakovic

I tried to remove the 'Product Description' heading from the single product page using a filter on 'woocommerce_product_description_heading' but the problem is that the filter will only remove the heading but not the h2 tags.

echo '<h2>' . apply_filters('woocommerce_product_description_heading', __('Product Description', 'woothemes')) . '</h2>';

Would it be possible to add the h2 tags to the filter, too?

I've also tried to remove the action:

remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_description_panel')

and replaced it with my own action, but then the content was displayed twice.

Therefor I decided to override the woocommerce_product_description_panel function with. It works but I don't like that solution. :)

Daniel Bakovic

thank you Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.