Viewing 1 reply thread
You must be logged in to reply to this topic.
Hello,
By default only one faq is open. The rest will open when you click on it. There is no option to have them all closed when first opening the page. To achieve this you need to edit theme files.
Go to vc_templates/faq.php and find these lines:
$output .= '<div class="accordion-group '.esc_attr($sort_classes).'">';
$output .= '<div class="accordion-heading '.( ($i == 1)?'in_head':'' ).'">';
$id = rand(0, 50000);
$output .= '<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion'.esc_attr($nr).'" href="#toggle'.esc_attr($id).'">';
$output .= get_the_title();
$output .= '</a>';
$output .= '</div>';
$output .= '<div id="toggle'.esc_attr($id).'" class="accordion-body '.( ($i == 1)?'in':'' ).' collapse ">';
$output .= '<div class="accordion-inner">';
$output .= get_the_content();
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
Edit both: $i == 1
to $i == 0
Save changes.
Best regards!
You must be logged in to reply to this topic.