• Resolved JM Crea

    (@dge-06)


    Hi,

    I created two custom tabs ‘ingrédients and mode d’emploi’ but they appear first.

    I would like them to appear right after the description and reviews last.

    Can you help me please ?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter JM Crea

    (@dge-06)

    Resolved

    I am facing this same issue but so far haven’t been able to find the answer.
    Can you help?

    • This reply was modified 6 years, 6 months ago by shilpa17.
    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @shilpa17,

    If you want to re-order tabs, you need to use a filter function.

    For example, this snippet will put your description tab first and a tab titled “14 Days to Return” last.

    add_filter( 'woocommerce_product_tabs', 'yikes_woo_reorder_tabs', 98, 1 );
    
    function yikes_woo_reorder_tabs( $tabs ) {
    
    	if ( isset( $tabs['description'] ) ) {
    		$tabs['description']['priority'] = 1;
    	}
    
    	if ( isset( $tabs['14-days-to-return'] ) ) {
    		$tabs['14-days-to-return']['priority'] = 100;
    	}
    
    	return $tabs;
    }

    If you want help with your specific tabs, tell me the titles you’re trying to re-arrange.

    Cheers,
    Kevin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make the custom tab appear AFTER the description tab’ is closed to new replies.