New Landing How can we help? Themeforest Theme Support Pinpoint Accordion sections collapsed by default

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Pinpoint
  • #72757
    vyruz85
    Member
    Post count: 4

    Hi guys,

    I need all accordion sections on the website to be collapsed by default when the page loads.

    Now, in every accordion there is one section always open by default.

    I need them closed (collapsed) and on click they should open and on second click they should close again.

    I already posted this question at ThemeForest comments and Ed sent me 2 solutions but neither one is working.

    First:
    change /js/functions.js lines 637-640 from:

    jQuery('.accordion').accordion({
                        collapsible: true,
                        autoHeight: false
                    });

    to:

    jQuery('.accordion').accordion({
                        collapsible: true,
                        autoHeight: false,
                        active: false
                    });

    Second:
    change /includes/page-builder/assets/js_composer_front.js lines 134-138 from:

    $tabs = jQuery(this).find('.wpb_accordion_wrapper').accordion({
                                    header: "> div > h3",
                                    autoHeight: true,
                                    heightStyle: "content"
                            })

    to

    $tabs = jQuery(this).find('.wpb_accordion_wrapper').accordion({
                                    header: "> div > h3",
                                    autoHeight: true,
                                    active: false,
                                    heightStyle: "content"
                            })

    I have to solve this very fast and I would be very grateful if you could help me with this.

    Thank you in advance !

    #72761
    vyruz85
    Member
    Post count: 4
    This reply has been marked as private.
    #72777
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Just fixed it, apologies – code should have been:

    $tabs = jQuery(this).find('.wpb_accordion_wrapper').accordion({
    				header: "> div > h3",
    				autoHeight: true,
            active: false,
            collapsible: true,
    				heightStyle: "content"
    			})
    #72778
    vyruz85
    Member
    Post count: 4

    Thank you so much man… for your prompt answer and fast solution of the issue !

    Best regards,
    J

    #72916
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You welcome . I’m glad that issue resolved . Thanks Ed 🙂 .
    With Best Regards
    Swift Ideas

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register