Reorganized tabs showing gray boxes
-
Hi Experts!
I’m using the product tabs to show additional information for some products. However, I reorganized the tabs using a code that I’ve put on functions.php file. After doing this, some products that do not need all three tabs are showing two empty gray tabs.
Here’s the code that I embedded:
add_filter( ‘woocommerce_product_tabs’, ‘reordered_tabs’, 85 );
function reordered_tabs ( $tabs ) {
$tabs[‘reviews’][‘priority’] = 5;
$tabs[‘product reference’][‘priority’] = 10;
$tabs[‘additional_information’][‘priority’] = 15;return $tabs;
}
I’m sure I missed something so any leads on how to fix this would be greatly appreciated! Thank you so much in advance!
Em
The page I need help with: [log in to see the link]
- The topic ‘Reorganized tabs showing gray boxes’ is closed to new replies.