Forked from kittenlane/1-remove-woocommerce-tabs.php
Created
September 1, 2021 09:13
-
-
Save netwizards/1de8bd674192173ea25618989a0c2e21 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