Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #640005

    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?

    #640118

    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

    #643491

    I am having the same issue as above. I have entered my website link in Private Content

    #644457

    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

    #644823

    Thank you!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘responsive tab closing’ is closed to new replies.