Home › Forums › WoodMart support forum › product tabs
product tabs
- This topic has 8 replies, 2 voices, and was last updated 3 months ago by
Hung Pham.
-
AuthorPosts
-
June 6, 2025 at 10:31 pm #665932
medshow37Participant“I want to place the ‘Review’ tab as the last tab and the ‘About Brand’ tab just before it on the single product page.”
June 9, 2025 at 10:17 am #666115
Hung PhamKeymasterHi medshow37,
Thanks for reaching to us and appreciate your patience.
Try to use the code below instead of yours. Define the code 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'] = 5; // Reviews first $tabs['description']['priority'] = 10; // Description second $tabs['additional_information']['priority'] = 15; // Additional information third // Custom Tabs are from Product Settings // $tabs['wd_custom_tab']['priority'] = 2; // $tabs['wd_custom_tab_2']['priority'] = 3; // Additional Tabs are from Theme Settings // $tabs['wd_additional_tab']['priority'] = 4; // $tabs['wd_additional_tab_2']['priority'] = 5; return $tabs; }
Regards,
Hung PDJune 10, 2025 at 9:05 am #666322
medshow37ParticipantHow i control about brand tab priority? I want it before the last tab immediately
June 10, 2025 at 12:26 pm #666488
Hung PhamKeymasterHi medshow37,
About Brand
is custom tab, so please double check my provided codes.Kind Regards,
Hung PDJune 10, 2025 at 9:42 pm #666600
medshow37ParticipantThere are 4 codes:
$tabs[‘wd_custom_tab’][‘priority’] = 2;
// $tabs[‘wd_custom_tab_2’][‘priority’] = 3;// Additional tabs are from theme settings
// $tabs[‘wd_additional_tab’][‘priority’] = 4;
// $tabs[‘wd_additional_tab_2’][‘priority’] = 5;Which one exactly controls the brand tabs?
Second issue: After I added your code in functions.php and didn’t fill it, it created an empty space on the product page between the tabs. See attached image and link.
Attachments:
You must be logged in to view attached files.June 12, 2025 at 7:13 am #666885
Hung PhamKeymasterHi medshow37,
Thanks for your patience.
To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.
Best Regards,
Hung PDJune 12, 2025 at 8:28 pm #667128
medshow37ParticipantOk
June 12, 2025 at 10:29 pm #667131
medshow37ParticipantIts also make spaces in desktop version
June 13, 2025 at 9:07 am #667173
Hung PhamKeymasterHi medshow37,
1. I fixed the issue, you can take a look functions in child theme.
2. There is a spacing due to you don’t want to display attributes on product page, check this checkbox and it will appears again https://ibb.co/ymyjJyHK
Best Regards,
Hung PD -
AuthorPosts
- You must be logged in to create new topics. Login / Register