Home › Forums › Basel support forum › Products Tabs issue
Products Tabs issue
- This topic has 9 replies, 2 voices, and was last updated 7 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
November 14, 2017 at 10:26 pm #24250
miguel1876ParticipantHi guys,
On the Home page I have 3 Products Tabs. The second one (What’s New) is suppose to show New Products, however it doesn’t show anything. It is blank.Also, in the Single Product Page, I am using the Accordion option. The first accordion is open by default. How I can have it so all Accordions are closed?
Thanks
November 15, 2017 at 7:28 am #24272
Artem TemosKeymasterHi,
1. You need to have products marked as “NEW” to show them https://prnt.sc/hankdm
2. By default, WooCommerce opens first tab when the page is loaded. You can try to close it manually right after page loading by adding this code snippet to the Custom JS section in Theme Settings
setTimeout(function() { var $tabs = jQuery( '.wc-tabs, ul.tabs' ).first(); $tabs.parent().find('#tab-basel_additional_tab').hide(); $tabs.parent().find( '.basel_additional_tab_tab' ).removeClass('active'); }, 10);
Regards
November 15, 2017 at 2:48 pm #24323
miguel1876ParticipantHi
Thanks but unfortunately that code does not work.
Any other options?November 15, 2017 at 2:56 pm #24327
Artem TemosKeymasterSend us a link where you added the code so we can check it.
November 15, 2017 at 3:00 pm #24331
miguel1876ParticipantI added the code to the Theme settings panel
https://bullywear.com/wp-admin/admin.php?page=_options&tab=42
I tried in the Global Custom JS and in the On document ready sections.I can see the code in the Source Code.
But it doesn’t work:
https://bullywear.com/shop/torment-white-hs/(I provided login info with the original post if you need it)
November 15, 2017 at 3:02 pm #24334
Artem TemosKeymasterTry to add it to document ready section.
November 15, 2017 at 3:04 pm #24335
miguel1876ParticipantI did try that but like I said, it doesn’t work.
I put the code there now so you can see it.November 15, 2017 at 3:05 pm #24337
Artem TemosKeymasterOK, so please, provide us an admin access exactly for this site. Since you gave me another website access.
November 15, 2017 at 3:06 pm #24338
miguel1876ParticipantOh I am sorry. 🙂
Here you go…November 15, 2017 at 3:12 pm #24342
Artem TemosKeymasterOK, we replaced the code with this one
setTimeout(function() { var $tabs = jQuery( '.wc-tabs, ul.tabs' ).first(); $tabs.parent().find('#tab-woodmart_additional_tab').hide(); $tabs.parent().find( '.tab-title-woodmart_additional_tab' ).removeClass('active'); }, 10);
-
AuthorPosts
- You must be logged in to create new topics. Login / Register