Tagged: tabs
when the tabs are going into mobile, then it shows like accordion. and first tab is always open.
I want to make it all tabs are closed only in mobile
How can i make it?
Hey arimang83,
Could you provide us with a link to the site in question so that we can take a closer look please?
Best regards,
Rikard
I am having the same issue as above. I have entered my website link in Private Content
Hi,
Thank you for the link. Set the “Initial Open” option to “0” then add this in the functions.php file:
// custom script
add_action('wp_footer', 'ava_custom_script');
function ava_custom_script(){
?>
<script>
(function($){
// trigger first tab on desktop view
function i() {
$(window).load(function() {
var mobile = $('#advanced_menu_toggle').css('display');
if( mobile == 'block' ) return;
$('.tab_counter_0').trigger('click');
});
}
i();
})(jQuery);
</script>
<?php
}
Best regards,
Ismael
Thank you!!