How do I remove the Woocommerce tabs and still show the Entry Content
-
I have a WooCommerce site that uses Visual Composer for it’s content layout. I want to remove the auto-tabs they show as the Product Description/Additional Info, and show the Visual Composer/Post entry content instead, but only on certain Product Categories. The rest can use the default auto-tabs.
I’ve been searching high and low and haven’t been able to find out how to do this. I cobbled together the snippet and it seems to work, but I’m not sure how correct it is or how to make it category specific. I tried a few things but get the white screen and it won’t save properly (just spins forever).
The code below works in the main theme’s functions (currently using Mystile), but if I try to add it to a child theme it gives me a white screen and doesn’t load and my layout gets all borked. Ideas? Easier/better solution?
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); function woocommerce_template_product_description() { wc_get_template( 'single-product/tabs/description.php' ); } add_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_product_description', 20 );
- The topic ‘How do I remove the Woocommerce tabs and still show the Entry Content’ is closed to new replies.