Skip to content

Instantly share code, notes, and snippets.

@jawinn
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save jawinn/e83ed21d44158864ddf0 to your computer and use it in GitHub Desktop.

Select an option

Save jawinn/e83ed21d44158864ddf0 to your computer and use it in GitHub Desktop.
WooCommerce Support to a Custom Theme
<?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