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

    I use this code in fucntion.php but do not work “Multiple toggles open allowed” in accordion settings

    # Accordion all open
    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(“p.toggler”).trigger(‘click’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_script’);

    #1034657

    Hey Stefano,

    All the toggles are open on my end when I view your site.

    Best regards,
    Rikard

    #1185963

    Hello,

    Could you please explain in more detail: where shall I place the above function and how to call it?

    Thanks in advance!
    J.N.

    #1186002

    Hi,

    Please try adding following code to bottom of functions.php file in Appearance > Editor

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

    Best regards,
    Yigit

    • This reply was modified 4 years, 10 months ago by Yigit.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.