Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bodilet/17d6530e8a895a167303e683522f3e58 to your computer and use it in GitHub Desktop.
Save bodilet/17d6530e8a895a167303e683522f3e58 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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment