Home › Forums › WoodMart support forum › TAB order
TAB order
- This topic has 5 replies, 2 voices, and was last updated 1 year, 2 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
January 2, 2024 at 6:15 pm #526182
TRTParticipantHow can I change this tab, please see attachment
Attachments:
You must be logged in to view attached files.January 3, 2024 at 11:16 am #526331
Aizaz Imtiaz AwanKeymasterHello,
Tabs are Woocommerce functionality and WoodMart does not have the option to change the tabs order.
Please check this manual:
https://woocommerce.com/document/editing-product-data-tabs/Best Regards.
January 3, 2024 at 2:20 pm #526414
TRTParticipantYes I know, my problem is that this specific tab that I showed is created in the woodmart template in product registration as you can see in the image .
In other words, reverse the order of the standard woocommerce tabs, just enter this code for example, but how do I pull tab 1 to the description side?
example
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 ); function woo_reorder_tabs( $tabs ) { $tabs['description']['priority'] = 5; $tabs['Kit Completo']['priority'] = 10; // Kit completo $tabs['additional_information']['priority'] = 15; return $tabs; }
Thanks
Attachments:
You must be logged in to view attached files.January 3, 2024 at 5:29 pm #526509
Aizaz Imtiaz AwanKeymasterHello,
You need to take the tab class and set the order:
https://ibb.co/qCrNCp1add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 ); function woo_reorder_tabs( $tabs ) { $tabs['wd_additional_tab'] = array( 'title' => __( 'Additional Information', 'woocommerce' ), 'priority' => 5, 'callback' => 'custom_additional_tab_content', // Replace with your callback function ); $tabs['more_seller_product'] = array( 'title' => __( 'More Seller Products', 'woocommerce' ), 'priority' => 10, 'callback' => 'custom_more_seller_product_tab_content', // Replace with your callback function ); $tabs['seller'] = array( 'title' => __( 'Seller', 'woocommerce' ), 'priority' => 15, 'callback' => 'custom_seller_tab_content', // Replace with your callback function ); $tabs['brand_tab'] = array( 'title' => __( 'Brand', 'woocommerce' ), 'priority' => 20, 'callback' => 'custom_brand_tab_content', // Replace with your callback function ); // Add other tabs similarly... return $tabs; } // Define the callback functions function custom_additional_tab_content() { // Your additional tab content goes here } function custom_more_seller_product_tab_content() { // Your more seller products tab content goes here } function custom_seller_tab_content() { // Your seller tab content goes here } function custom_brand_tab_content() { // Your brand tab content goes here }
insert the tab class, change 15 to 20, then 25, then 30 for each tab and set the order for each tab from your product page.
Best Regards.
January 3, 2024 at 5:49 pm #526523
TRTParticipantI understand, I’ve seen it…
Thank you for your helpJanuary 4, 2024 at 9:53 am #526645
Aizaz Imtiaz AwanKeymasterSounds Great! that your issue has been solved.
I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.
We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.
Thanks for contacting us.
Have a great day.Topic Closed.
Best Regards. -
AuthorPosts
The topic ‘TAB order’ is closed to new replies.
- You must be logged in to create new topics. Login / Register