Home › Forums › WoodMart support forum › Product tabs
Product tabs
- This topic has 25 replies, 2 voices, and was last updated 1 year ago by Hung Pham.
-
AuthorPosts
-
October 4, 2023 at 12:54 pm #501512
v1ppers0nnParticipantHi, is possible to change the order of the product tabs? I want the order to be first the description, then the tabs from the product setting (Product Setting (custom metabox from theme)), then the Additional tabs from theme options and last to be the reviews.
October 5, 2023 at 9:21 am #501732
Hung PhamKeymasterHi v1ppers0nn,
Thanks for reaching to us.
You can add below PHP code to functions.php file in Child theme.
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 ); function woo_reorder_tabs( $tabs ) { $tabs['description']['priority'] = 1; // 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; $tabs['reviews']['priority'] = 99; return $tabs; }
Regards,
October 5, 2023 at 11:28 pm #502058
v1ppers0nnParticipantI have an error “Warning: Undefined array key “callback” in /home/magherbs/new.magherbs.com/wp-content/themes/woodmart/woocommerce/single-product/tabs/tabs.php on line 108
“October 6, 2023 at 7:18 am #502093
Hung PhamKeymasterHi v1ppers0nn,
Please send me temporary wp-admin info (wp-admin URL, username, password), I will debug that issue.
Regards,
October 6, 2023 at 1:12 pm #502213
v1ppers0nnParticipantIn private
October 7, 2023 at 6:01 am #502377
Hung PhamKeymasterHi v1ppers0nn,
Admin credential is incorrect, please check again.
Regards,
October 7, 2023 at 8:14 am #502394
v1ppers0nnParticipantYou can try again.
October 8, 2023 at 1:48 pm #502544
Hung PhamKeymasterHi v1ppers0nn,
I didn’t see error in back-end and front-end as well. Please provide URL of the mentioned page that have error.
Have a great Sunday.
Regards,
October 8, 2023 at 2:20 pm #502545
v1ppers0nnParticipantOf course you don’t see it because i remove it from functions.php. Just put it and check, i can’t work with errors on website.
October 8, 2023 at 6:04 pm #502567
Hung PhamKeymasterHi v1ppers0nn,
Please provide me an temporary FTP account, I will enable debug log and check this problem more deeply.
Thanks for your patience.
October 11, 2023 at 11:12 am #503261
v1ppers0nnParticipantAttached
October 11, 2023 at 5:59 pm #503442
Hung PhamKeymasterHi v1ppers0nn,
I’ve fixed your issue. Please check your site again.
Regards,
October 11, 2023 at 7:21 pm #503458
v1ppers0nnParticipantI have again an error: ОПИСАНИЕ
ПРИЕМWARNING: UNDEFINED ARRAY KEY “TITLE” IN /HOME/MAGHERBS/NEW.MAGHERBS.COM/WP-CONTENT/THEMES/WOODMART/WOOCOMMERCE/SINGLE-PRODUCT/TABS/TABS.PHP ON LINE 76
ПРОТИВОПОКАЗАНИЯWARNING: UNDEFINED ARRAY KEY “TITLE” IN /HOME/MAGHERBS/NEW.MAGHERBS.COM/WP-CONTENT/THEMES/WOODMART/WOOCOMMERCE/SINGLE-PRODUCT/TABS/TABS.PHP ON LINE 76
October 12, 2023 at 6:15 pm #503765
Hung PhamKeymasterHi v1ppers0nn,
Thanks for your patience.
Please remove previous code and use below one.
function woo_reorder_tabs( $tabs ) { $first_tabs = array( 'description', 'wd_custom_tab', 'wd_custom_tab_2', 'wd_additional_tab', 'wd_additional_tab_2', 'wd_additional_tab_3', ); foreach ( $first_tabs as $priority => $tab ) { if ( isset( $tabs[ $tab ] ) ) { $tabs[ $tab ]['priority'] = $priority + 1; } } if ( isset( $tabs['reviews'] ) ) { $tabs['reviews']['priority'] = 99; } return $tabs; }
Let me know how it goes.
Regards,
October 12, 2023 at 6:32 pm #503769
v1ppers0nnParticipantI put it. I don’t have error, but the order is not changed.
October 13, 2023 at 9:53 am #503870
Hung PhamKeymasterHi v1ppers0nn,
I’ve fixed your issue. Please check your site again.
Regards,
October 16, 2023 at 5:09 pm #504520
v1ppers0nnParticipantThank you!
I have found another bug. On mobile phone the sticky menu is not working. When i test from browser > inspect element and select from phone all is okay, but on real phone is not sticky. Is from WP Rocket problem?
October 17, 2023 at 1:54 pm #504762
Hung PhamKeymasterHi v1ppers0nn,
I can’t access your site to see the problems. Please check again. https://prnt.sc/h7MqTF9izHOL
Regards,
October 17, 2023 at 2:15 pm #504767
v1ppers0nnParticipantThe website is transferred to magherbs.com, is live now 🙂
October 18, 2023 at 6:59 am #504965
Hung PhamKeymasterHi v1ppers0nn,
I see the main menu does not enable sticky as well.
Are you referring to main menu or categories side menu?
Regards,
October 18, 2023 at 3:07 pm #505122
v1ppers0nnParticipantI told on MOBILE. Try open magherbs.com from mobile, scroll down and then scroll up, you will see that the menu is not appearing.
October 19, 2023 at 7:51 am #505319
Hung PhamKeymasterHi v1ppers0nn,
Navigate to WoodMart > Header builder > edit default header (highlighted star icon) or you can go through admin bar directly https://prnt.sc/Ct9ehRDvvDV9.
Switch to Mobile tab, click on Settings https://prnt.sc/Wan2ewcy04OX then you can turn off “Hide when scrolling down” option.
Please refer to this article https://xtemos.com/docs-topic/woodmart-header-builder/
Regards,
October 19, 2023 at 9:21 am #505329
v1ppers0nnParticipantOh… you can’t understand me? I WANT TO HIDE WHEN SCROLL DOWN, but i want when someone SCROLL UP to show the header, but is not working on mobile.
October 19, 2023 at 8:22 pm #505547
Hung PhamKeymasterHi v1ppers0nn,
Sorry for misunderstood.
If the option “Hide when scrolling down” is enable, then Sticky Header will show on your Site when you scroll up.
I tested and it worked on my mobile devices, please clear cache and double check.
Regards,
October 30, 2023 at 12:39 am #508318
v1ppers0nnParticipantIs not working on my phone, and on other phones. I am with galaxy z fold. Please send me an email where i can send you a video.
October 30, 2023 at 6:43 pm #508603
Hung PhamKeymasterHi v1ppers0nn,
You can upload video and share link to Private Content area.
Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register