Home Forums WoodMart support forum Reorder Product Tabs

Reorder Product Tabs

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

    piotrburchart
    Participant

    Hi,

    Is there any option to reorder and remove product tabs? (I would like to remove Additional Information tab generated by Woo, and reorder other tabs).

    Thanks

    #635462

    Hello,

    To remove the additional information tab, Add this code to the Theme Settings > Custom CSS > Global:

    li.additional_information_tab {
      display: none;
    }

    The code below will help you to reorder the tabs. Please try to add the code below in the functions.php file in your child theme.

    /**
     * Reorder product data tabs
     */
    add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
    function woo_reorder_tabs( $tabs ) {
    
    	$tabs['reviews']['priority'] = 1;			// Reviews first
    	$tabs['description']['priority'] = 2;			// Description second
    
    	// Additional Tabs are from Theme Settings
    	 $tabs['wd_additional_tab']['priority'] = 3;
    	 $tabs['wd_additional_tab_2']['priority'] = 4;
    	return $tabs;
    }

    Please follow this guide:
    https://woocommerce.com/document/editing-product-data-tabs/

    Best Regards.

    #635946

    piotrburchart
    Participant

    thank you

    #635960

    Hello,

    You’re very welcome! I’m glad I could help. If you need anything else, feel free to reach out!

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

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

The topic ‘Reorder Product Tabs’ is closed to new replies.