Created
April 23, 2023 19:26
-
-
Save maagmirror/fc3251582ffa0fc2aa81c90cf415442d to your computer and use it in GitHub Desktop.
Move WooCommerce Product Long Description Into The Short Description Product Layout
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 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