Forked from kittenlane/1-remove-woocommerce-tabs.php
Created
December 4, 2017 21:47
-
-
Save bodilet/17d6530e8a895a167303e683522f3e58 to your computer and use it in GitHub Desktop.
Remove tabs but keep product description in WooCommerce
This file contains hidden or 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 hidden or 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 hidden or 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