Categories

Featured templates

WooCommerce. How to change order of tabs on product page

Andre Flores August 1, 2016
Rating: 4.8/5. From 4 votes.
Please wait...

Hello! This video tutorial shows how to change the order of tabs on product page in WooCommerce templates.

There are information tabs on product single pages in WooCommerce that you may want to reorder:

wocommerce_change_order_of_tabs_1

Let’s learn how to do that.

Let’s say, you want to have Video tab to be displayed the first.

The tutorial assumes you are already logged in to your WordPress dashboard.

  1. Navigate to the Appearance ->Editor tab:

    wocommerce_change_order_of_tabs_2
  2. Then, click the custom-function.php file title at the right hand side:

    wocommerce_change_order_of_tabs_3
  3. Now that the file editing interface is opened in front of you, scroll down to the very end of the file and add the following code right before the closing PHP tag:

    add_filter( 'woocommerce_product_tabs', 'reordered_tabs', 98 );
    function reordered_tabs( $tabs ) {
    	$tabs['cherry_wc_video']['priority'] = 5; 
    	$tabs['description']['priority'] = 10; 
    	$tabs['reviews']['priority'] = 15;
    
    	return $tabs;
    }

    As you can see, we have set the Video tab to be the first one displayed:

    wocommerce_change_order_of_tabs_4
  4. Click on the "Update File" button to apply changes.

  5. Navigate to your front-end and open any product page – you can see tabs have been successfully reordered:

    wocommerce_change_order_of_tabs_5

This is the end of the tutorial. Now you know how to change the order of tabs on product page in your WooCommerce template.

Feel free to check the detailed video tutorial below:

WooCommerce. How to change order of tabs on product page
Buy Wordpress Themes
This entry was posted in WooCommerce Tutorials and tagged product page, tabs, WooCommerce. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket