Hello, I have a problem with the product Tabs, for my dog I had to reorder the Tabs, to do this I used the following code
/*** reorder tabs */
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
function woo_reorder_tabs( $tabs ) {
$tabs['description']['priority'] = 5;
$tabs['wd_custom_tab']['priority'] = 10; //complementos
$tabs['additional_information']['priority'] = 15;
$tabs['reviews']['priority'] = 50;
return $tabs;
}
on the desktop / laptop it works fine, but on mobile devices it appears the same as the attached image whenever I don’t add the tab and this is only happening because of the change in order, if I comment/undo the code the error disappears
-
This topic was modified 10 months, 1 week ago by TRT.
Attachments:
You must be
logged in to view attached files.