Re-order custom tab on product page
-
Hello there,
I used this code to re-order the tabs, but now we’re starting to use the custom tab on products pages and I need to set the priority. What is it the element id to do that?
Thanks.
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
function woo_reorder_tabs( $tabs ) {
$tabs['reviews']['priority'] = 5; // Reviews first
$tabs['additional_information']['priority'] = 15; // Additional information third
return $tabs;
}
Hello,
Our theme’s custom tab slug is woodmart_additional_tab
. You can use this key and change this tab’s priority.
Kind Regards
Thanks. With Basel which is the custom tag?
It looks like this basel_additional_tab
for Basel.
It seems to not work here with:
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
function woo_reorder_tabs( $tabs ) {
$tabs['reviews']['priority'] = 5; // Reviews first
$tabs['basel_additional_tab']['priority'] = 10; // Custom page tab
$tabs['additional_information']['priority'] = 15; // Additional information third
return $tabs;
}
Could you help me please?
Thanks.
Please, disable all external plugins and send us your admin and FTP access so we can check why it doesn’t work for you.
Could you check if is it the right slug? It will be appreciated. There isn’t any plugin that influence that section.
Thanks.
The correct one was ‘basel_custom_tab’.
Thanks.
The topic ‘Re-order custom tab on product page’ is closed to new replies.