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 :)
Hey Kayzel!
Please refer to my post here – https://kriesi.at/support/topic/expand-all-accordions/#post-292026
Best regards,
Yigit
/*
* 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!
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
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
Solved thanks!! :)
You are welcome, glad to help :)
Regards,
Josue