Forked from kittenlane/1-remove-woocommerce-tabs.php
Created
September 24, 2022 14:39
-
-
Save stonecorleone/712bd8443244a8a967666363fda1da2e to your computer and use it in GitHub Desktop.
Remove tabs but keep product description in WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* 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 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* 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 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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