Home Forums WoodMart support forum Re-ordering tabs of single product page

Re-ordering tabs of single product page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #475100

    nasir-2290
    Participant

    Hi there,
    I am using this snippet to reordering the tabs but it is not working. Could you please have a look.

    Here is the code:
    /**
    * Reorder product data tabs
    */
    add_filter( ‘woocommerce_product_tabs’, ‘woo_reorder_tabs’, 98 );
    function woo_reorder_tabs( $tabs ) {

    $tabs[‘description’][‘priority’] = 5; // Description first
    $tabs[‘care’][‘priority’] = 10; // care second
    $tabs[‘size’][‘priority’] = 15; // size third
    $tabs[‘delivery & returns’][‘priority’] = 20; // Shipping & delivery fourth

    return $tabs;
    }

    #475127

    Luke Nielsen
    Keymaster

    Hello,

    Please read the WooCommerce documentation for help in Tabs order:
    https://docs.woocommerce.com/document/editing-product-data-tabs/

    Please make sure that you added the code correctly then check back. Let me know the result.

    Kind Regards

    #475129

    nasir-2290
    Participant

    Hi Luke,
    I have read the above mentioned document carefully and applied the code as per instructed but it still doesn’t work. I attached the screenshot for reference.

    Thanks!
    Regards,
    Nasir

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

    Luke Nielsen
    Keymaster

    Hello,

    I have fixed it, please check it from your side.

    Don’t hesitate to let me know if you need any further help or any other info.

    Kind Regards

    #475470

    nasir-2290
    Participant

    Hi Luke,
    Thanks a lot, I can see now it is fixed.

    Regards,
    Nasir

    #475471

    Luke Nielsen
    Keymaster

    Hello,

    You are welcome! In case you need any additional help, I’d be more than happy to assist you.

    Have a good day!

    Kind Regards

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

The topic ‘Re-ordering tabs of single product page’ is closed to new replies.