Skip to content

Instantly share code, notes, and snippets.

@kittenlane
Last active October 5, 2024 14:18
Show Gist options
  • Save kittenlane/a09a58fdcf6001bafe3c to your computer and use it in GitHub Desktop.
Save kittenlane/a09a58fdcf6001bafe3c to your computer and use it in GitHub Desktop.
Remove tabs but keep product description in WooCommerce
//* http://gasolicious.com/remove-tabs-keep-product-description-woocommerce/
// Location: add to functions.php
// Output: removes woocommerce tabs
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
//* http://gasolicious.com/remove-tabs-keep-product-description-woocommerce/
// Location: add to functions.php
// Output: adds full description to below price
function woocommerce_template_product_description() {
woocommerce_get_template( 'single-product/tabs/description.php' );
}
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_product_description', 20 );
/* remove "Product Description" heading */
.summary h2 {
display: none;
}
@NerdicaLabs
Copy link

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );

Didn't work. Needs an update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment