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’);
Hey Stefano,
All the toggles are open on my end when I view your site.
Best regards,
Rikard
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.
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