Home Forums WoodMart support forum After 6.3.0 Update “Custom JS” Code not working..

After 6.3.0 Update “Custom JS” Code not working..

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #357949

    Faizan Chauhaan
    Participant

    I want DESCRIPTION Tab Close by Default…
    Before i used this code

    if (jQuery(window).width() <= 768) {
        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);
    }

    Today i update theme to 6.3.0 Now this above code not working..
    OLD Topic
    https://xtemos.com/forums/topic/want-single-product-page-all-tabs-close/

    #358180

    Artem Temos
    Keymaster

    Hello,

    Try to use the following custom JS code instead

    if (jQuery(window).width() <= 768) {
        setTimeout(function() {
            jQuery('div[data-accordion-index="description"]').trigger('click');
        }, 10);
    }

    Kind Regards

    #358274

    Faizan Chauhaan
    Participant

    Yes Its Worked Thank You!

    #358284

    Artem Temos
    Keymaster

    Great, you are welcome!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘After 6.3.0 Update “Custom JS” Code not working..’ is closed to new replies.