Home Forums Tucson Template Mobile Nav doesn't close

This topic contains 1 reply, has 2 voices, and was last updated by  Support2 2 weeks, 3 days ago. This post has been viewed 74 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10027897

    thorns
    Participant

    Hi,

    the mobile nav doesn’t close when I click on a menu-item – is there a fix for it?


    #10027901

    Support2
    Keymaster

    Hello,

    To fix this, first you need to take off this part of your code:

    $(document).on('click',function(){
    $('.collapse').collapse('hide');
    })

    This part is located at the footer of document.

    After go to the (js/custom.js) file and paste this:

    $('.nav a').on('click', function(e){
    	if(!$(e.target).hasClass('dropdown-toggle')){
    		$('.navbar-collapse.in').collapse('hide');
    	}
    });

    Please, try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


Viewing 2 posts - 1 through 2 (of 2 total)