Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save maagmirror/fc3251582ffa0fc2aa81c90cf415442d to your computer and use it in GitHub Desktop.
Save maagmirror/fc3251582ffa0fc2aa81c90cf415442d to your computer and use it in GitHub Desktop.
Move WooCommerce Product Long Description Into The Short Description Product Layout
//Remove WooCommerce Tabs - this code removes all 3 tabs - to be more specific just remove actual unset lines
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
return $tabs;
}
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
add_action( 'woocommerce_single_product_summary', 'ta_the_content' );
function ta_the_content() {
echo the_content();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment