Tagged: , ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #330887

    Hi there!
    As stated, how do i set Accordion (Avia Layout Builder) – Accordion to have all toggles to be open by default?
    Do refer to private content for access to web – password protected page
    Help is always appreciated :)

    #330890

    Hey Kayzel!

    Please refer to my post here – https://kriesi.at/support/topic/expand-all-accordions/#post-292026

    Best regards,
    Yigit

    #330914
    /*
     *  register custom functions that are not related to the framework but necessary for the theme to run
     */
    
    require_once( 'functions-enfold.php');
    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    	   jQuery("p.toggler").addClass("activeTitle");
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');
    
    /*
     * add option to edit elements via css class
     */
    // add_theme_support('avia_template_builder_custom_css');
    

    My last section of functions.php code. I set to toggle mode, with 1 as initial open. But i want all of them by default to open themselves but it didnt work! More assistance required cheers!

    #330919

    Hey!

    Do you mind creating a temporary admin login and posting it here privately? Please post the link to your page where you have the element as well

    Regards,
    Yigit

    #331028
    This reply has been marked as private.
    #331978

    Hey!

    Try with this code instead:

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
         jQuery("p.toggler").trigger('click');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Cheers!
    Josue

    #332033

    Solved thanks!! :)

    #332067

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How do I set Accordion to have all toggles open by default and not only one.’ is closed to new replies.