Last active
August 29, 2015 14:05
-
-
Save jawinn/e83ed21d44158864ddf0 to your computer and use it in GitHub Desktop.
WooCommerce Support to a Custom Theme
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
| <?php | |
| // ---------------------------------------------------- | |
| // WooCommerce Additions to functions.php in WordPress | |
| // ---------------------------------------------------- | |
| // Theme support. Removes warning message in admin. | |
| add_theme_support( 'woocommerce' ); | |
| // Removing tabs and replace with simple product description (removes "Reviews" etc) | |
| remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); | |
| function woocommerce_template_product_description() { | |
| woocommerce_get_template( 'single-product/tabs/description.php' ); | |
| } | |
| add_action( 'woocommerce_single_product_summary', 'woocommerce_template_product_description', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment