Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #592319

    Hello. Can we set ALL accordion entries to open initially?

    Thanks,
    Ryan

    #592775

    Hi Ryan!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_hotspot(){
    ?>
    <script>
    jQuery(window).ready(function(){
    jQuery('.your-custom-class p.toggler').addClass('activeTitle');
    jQuery('.your-custom-class .toggle_wrap').addClass('active_tc');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_hotspot');

    then turn on custom CSS field for ALB elements – kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and give your Accordion element a custom CSS class “you-custom-class” in example. Please make sure to enable having multiple accordions open.

    Cheers!
    Yigit

    #593577

    Works beautifully! Thank you!

    #594075

    Hi,

    Great, glad we could help :-)

    Best regards,
    Rikard

    #607310

    Good to go. Please close. Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Accordions – Initial Open’ is closed to new replies.