Home Forums WoodMart support forum Custom tab re-order

Custom tab re-order

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #336479

    1fosterit
    Participant

    Hi,

    I am trying to re-order the Custom tabs

    example:
    How it looks now:
    DESCRIPTION|EVIEWS (0) | SHIPPING & DELIVERY | ADDITIONAL INFORMATION

    How I want it to look.
    DESCRIPTION|ADDITIONAL INFORMATION | REVIEWS (0) | SHIPPING & DELIVERY |

    Attachments:
    You must be logged in to view attached files.
    #336494

    Luke Nielsen
    Keymaster

    Hello,

    Here is a custom PHP code for reordering the additional tab, please try to add it to the functions.php file in your child theme.

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

    If that won’t help you, please provide your site admin access to the private area. I will do my best to help you.

    Kind Regards

Tagged: 

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