Move WooCommerce product tabs out of the tabs

I want to have the product tabs out of the tabs section and put them one down the other with no need of having the tabs functionality.

I can unset the tabs

add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );

function woo_remove_product_tabs( $tabs ) {

     unset( $tabs['description'] );
     unset( $tabs['reviews'] );
     unset( $tabs['additional_information'] );

   return $tabs;
}

but I dont know how to reset them in columns layout and not in tabs.

Thanks for any help

Topic woocommerce-offtopic tabs Wordpress

Category Web


It turned out that woocommerce_get_template() was deprecated and replaced by wc_get_template(). I solved this by adding this to my functions.php.

add_action( 'woocommerce_after_single_product_summary', 'removing_product_tabs', 2 );

function removing_product_tabs(){
    remove_action('woocommerce_after_single_product_summary','woocommerce_output_product_data_tabs', 10 );
    add_action('woocommerce_after_single_product_summary','get_product_tab_templates_displayed', 10 );
}

function get_product_tab_templates_displayed() {
    wc_get_template( 'single-product/tabs/description.php' );
    wc_get_template( 'single-product/tabs/additional-information.php' );
    comments_template();
}

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.