Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Remove tabs on product

Home / Forums / Virtue Theme / Remove tabs on product

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
October 19, 2017 at 2:27 pm

Hi,

Would like to remove the tabs on products in WooCommerce. And instead show all in sequence.
Found this code.
/**
* Remove existing tabs from single product pages.
unset( $tabs['kad_custom_tab_01'] );
*/
function remove_woocommerce_product_tabs( $tabs )
{
unset( $tabs['description'] );
unset( $tabs['additional_information'] );
unset( $tabs['video_tab'] );
unset( $tabs['kad_custom_tab_01'] );
unset( $tabs['kad_custom_tab_02'] );
unset( $tabs['kad_custom_tab_03'] );
return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'remove_woocommerce_product_tabs', 98 );
/**
* Hook in each tabs callback function after single content.
*/
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_product_description_tab' );
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_product_additional_information_tab' );
add_action( 'woocommerce_after_single_product_summary', 'tab_XXXXXXXXXXXXXXXX' );
add_action( 'woocommerce_after_single_product_summary', 'tab_XXXXXXXXXXXXXXXX' );
add_action( 'woocommerce_after_single_product_summary', 'tab_XXXXXXXXXXXXXXXX' );
add_action( 'woocommerce_after_single_product_summary', 'tab_XXXXXXXXXXXXXXXX' );

But I do not manage to call back Video and the custom tabs. Can anyone here help me?

Best regards

Fredrik

  • The forum ‘Virtue Theme’ is closed to new topics and replies.