Knowledge Base

Help, guides and FAQ about Magikcommerce.

How to Change the Order of Product Tabs in WooCommerce?

WooCommerce by defaulty supports 3 Product tabs in Product Detail. There are numerous plugins for WooCommerce which can help you to change the order of product tabs in your WooCommerce theme. But, if you do not wish to change the order of product tabs via a plugin, you can follow the steps given below and make modifications in your WooCommerce theme.

Change the Order of Product Tabs

To change the order of product tabs in product detail pages you need to add the following lines of code in your theme's functions.php file. Just append the following lines of code at the bottom of functions.php

 // Remove tabs
        
    remove_action( 'woocommerce_product_tabs','woocommerce_product_description_tab', 10 );
    remove_action( 'woocommerce_product_tabs','woocommerce_product_attributes_tab', 20 );
    remove_action( 'woocommerce_product_tabs','woocommerce_product_reviews_tab', 30 );

  // Re-hook with different priorities. 

    add_action( 'woocommerce_product_tabs','woocommerce_product_description_tab', 20 );
    add_action( 'woocommerce_product_tabs','woocommerce_product_attributes_tab', 30 );
    add_action( 'woocommerce_product_tabs','woocommerce_product_reviews_tab', 10 );

If you face any problems or need our professional services, please email us at [email protected] .