Are you want to re-order the product detail tabs in your WooCommerce WordPress, then keep your close attention in this post as I am going to share how to re-order the product detail tabs in WooCommerce.
Copy & paste the below code at the end of the your-theme-folder/themes/functions.php file and save it. Below code will re-order your Tabs as per your requirement.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<?php add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 ); function woo_reorder_tabs( $tabs ) { // Reviews first $tabs['reviews']['priority'] = 5; // Description second $tabs['description']['priority'] = 10; // Additional information third $tabs['additional_information']['priority'] = 15; return $tabs; } ?> |
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.