How to change the Show/Hide button of filter form

if you want to change the images of this button.  You should change the images for the open and closed state of the filter

If you want to change the template, for example, use only text.


add_action('avalon23_before_filter_draw', function($args) {
$opened = true; //open by default , to closed by default set false
$id_of_filter = 1; //Filter id for which you want to apply this custom template
if (isset($args['id']) && $id_of_filter == $args['id']) {
?>
<div class='avalon23_toggle_wrapper' style="display:none;">
<input id="avalon23_toggle_switch_<?php echo esc_attr($args['id']); ?>" type="checkbox" <?php echo esc_attr(( $opened ) ? "checked='checked'" : '' ); ?> class="avalon23_toggle_switch" />
<label for="avalon23_toggle_switch_<?php echo esc_attr($args['id']); ?>">
<span class="avalon23_toggle_open" > Open OR any text </span>
<span class="avalon23_toggle_close" > Close OR any text </span>
</label>
<div class="avalon23_toggled"> <?php
}
});
add_action('avalon23_after_filter_draw', function($args) {
$id_of_filter = 1;//Filter id for which you want to apply this custom template
if (isset($args['id']) && $id_of_filter == $args['id']) {
?> </div> </div> <?php
}
});