Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - Move description under product image
- // code goes in functions.php for your child theme
- add_filter( 'woocommerce_product_tabs', 'remove_description_tab', 60 );
- function remove_description_tab($tabs) {
- if ( isset( $tabs['description'] ) ) {
- unset( $tabs['description'] );
- }
- return $tabs;
- }
- add_action( 'woocommerce_before_single_product_summary', 'custom_open_div', 5 );
- function custom_open_div() {
- echo '<div class="product_page_left_side">'.PHP_EOL;
- }
- add_action( 'woocommerce_before_single_product_summary', 'custom_show_description', 60 );
- function custom_show_description() {
- global $post;
- echo '<h3>Description</h3>'.PHP_EOL;
- echo the_content();
- } // end function
- add_action( 'woocommerce_before_single_product_summary', 'custom_close_div', 80 );
- function custom_close_div() {
- echo '</div>'.PHP_EOL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement