Home Forums WoodMart support forum Tabs order

Tabs order

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #330495

    colorlink
    Participant

    greetings

    so i have the following tabs
    https://prnt.sc/1yvx1vb

    number 2 is made using the PRODUCT TAB OPTIONS
    number 1 is made using theme option ADDITIONAL TABS

    I need number 2 to show above number 1 ( exchange order )

    how to do so?

    thanks

    #330523

    Luke Nielsen
    Keymaster

    Hello,

    Please send us the URL to your product with tabs like on your attached screenshot. I will do my best to help you.

    Kind Regards

    #330576

    colorlink
    Participant

    i just received the following email

    and product URL provided below ( its the only product I have anyway)

    #330673

    Luke Nielsen
    Keymaster

    Hello,

    To be able to change the order of the tabs, you need to add this code to the functions.php file in your child theme.

    if ( ! function_exists('wd_reorder_tabs') ) {
        
        function wd_reorder_tabs( $tabs ) {
            $tabs['wd_custom_tab']['priority'] = 10;
    
            return $tabs;
        }
    
        add_filter( 'woocommerce_product_tabs', 'wd_reorder_tabs', 98 );
    }

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)