Home / Forums / WoodMart support forum / ‘Description’ tabs to be automatically closed, just like the other tabs.
Home › Forums › WoodMart support forum › ‘Description’ tabs to be automatically closed, just like the other tabs.
‘Description’ tabs to be automatically closed, just like the other tabs.
- This topic has 10 replies, 2 voices, and was last updated 4 years, 3 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
September 11, 2021 at 10:56 am #317866
nmodaParticipantHello,
I am currently using Accordion style tab and the description tab is open by default.
I want all tabs to be closed by default.I was looking for a solution in support forum and I found this one ( which does not work);
setTimeout(function() { var $tab = jQuery('.woodmart-tab-wrapper').find('a.active'); $tab.siblings('.wc-tab').hide(); $tab.removeClass('active'); }, 10);– Entered that the code in CUSTOM JS > On document ready section but nothing has changed
Please help.
September 11, 2021 at 12:05 pm #317891
Aizaz Imtiaz AwanKeymasterHello,
Please remove the previous Code and try adding the following Code in the Document Ready Area under Theme Settings >> Custom JS.
setTimeout(function() { var $tabs = jQuery( '.wc-tabs, ul.tabs' ).first(); $tabs.parent().find('#tab-description').hide(); $tabs.parent().find( '.tab-title-description' ).removeClass('active'); }, 1000);Best Regards
September 11, 2021 at 1:19 pm #317910
nmodaParticipantThank you for the quick response. It works but not really properly because the description is still visible for a second when the page loads and looks really weird.
Any other suggestions ?
Thank you very much.
September 13, 2021 at 12:23 pm #318194
Aizaz Imtiaz AwanKeymasterHello,
Please try adding the following Custom CSS in the Global Custom CSS area under Theme Settings >> Custom CSS.
body:not(.ready) .wd-accordion-title.active { color: var(--wd-link-color); } body:not(.ready) .woocommerce-Tabs-panel { display: none !important; }Add the following Custom JS Code Alongside the previous code I provided.
jQuery(document).ready(function(){ jQuery('body').addClass('ready'); });Then check back.
Best Regards
September 13, 2021 at 12:40 pm #318198
nmodaParticipantHello,
Ok, Tabs are closed by default but when I click to open the tab it wont open.
Sending you ss.Am I doing something wrong ?
Attachments:
You must be logged in to view attached files.September 13, 2021 at 1:05 pm #318208
nmodaParticipantAlright sorry, Did not write the code alongside. Fixed now. But still the tab is open for a millisecond even tho I changed 1000 to 10.
setTimeout(function() { var $tabs = jQuery( '.wc-tabs, ul.tabs' ).first(); $tabs.parent().find('#tab-description').hide(); $tabs.parent().find( '.tab-title-description' ).removeClass('active'); }, 10) jQuery(document).ready(function(){ jQuery('body').addClass('ready'); });September 13, 2021 at 1:23 pm #318214
Aizaz Imtiaz AwanKeymasterHello,
Can you please share the WP admin login details of your site so I will check and solve the issue for you?
Best Regards.
September 13, 2021 at 1:25 pm #318216
nmodaParticipantSure
September 14, 2021 at 7:22 am #318375
Aizaz Imtiaz AwanKeymasterHello,
We have fixed the issue on your website. Please clear cache and check back.
Regards.
Xtemos Studios.September 14, 2021 at 12:36 pm #318508
nmodaParticipantThanks a lot !
September 14, 2021 at 12:44 pm #318512
Aizaz Imtiaz AwanKeymasterMost Welcome!!!
If you do not mind, can you please leave a 5 stars rating for our Theme & Customer and Technical Support by going here: http://themeforest.net/downloads It will allow us to release more updates and provide dedicated support in future. It would encourage our work a lot. If you like our Theme and Support.
Thanks for contacting us.
Have a great day:-)Topic Closed.
Best Regards. -
AuthorPosts
The topic ‘‘Description’ tabs to be automatically closed, just like the other tabs.’ is closed to new replies.
- You must be logged in to create new topics. Login / Register