Tagged: accordions
Hello. Can we set ALL accordion entries to open initially?
Thanks,
Ryan
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
Works beautifully! Thank you!
Good to go. Please close. Thank you!