Home › Forums › Porto – Responsive HTML5 Template › mobile menu not working when searchform is removed
- This topic has 4 replies, 2 voices, and was last updated 10 years, 8 months ago by
CrazyDoubleJ. This post has been viewed 2054 times
-
AuthorPosts
-
October 27, 2014 at 6:03 pm #10004616
CrazyDoubleJ
ParticipantHi
I removed the social media stuff and the search form from the top header row. Only a few of the
<li><li></li>
elements are left (About us, contact us … in your template).Now, if I narrow the browser window to mobile view, the menu does not work properly. In Firefox the menu expands but immediately collapses again. In Chrome and IE just a small black bar shows up for an instant.
If I past the search form code back in the code everything works fine.
in full width view no problems occur at all.
Do you have any idea what I am missing here? Thanks a lot in advance for your support!
October 28, 2014 at 10:16 am #10004626Support
KeymasterHello,
I did a few tests here and I actually wasn’t able to reproduce the issue.
Can you please confirm if you remove those?
If you could send me the URL would be awesome, so I can check it here.
Thanks.
October 28, 2014 at 4:55 pm #10004635CrazyDoubleJ
ParticipantHi there
Thanks for your quick reply!
The <nav> part is still there, it looks like this
<header id="header"> <div class="container"> <h1 class="logo"> <a href="index.html"> <img alt="japantee.ch" title="japantee.ch" width="92" height="100" data-sticky-width="37" data-sticky-height="40" src="/Sources/Own/img/logo.png"> </a> </h1> <nav> <ul class="nav nav-pills nav-top"> <li> <a href="mailto:[email protected]"><i class="fa fa-envelope"></i>Kontakt</a> </li> <li> <a href="contact-us.html"><i class="fa fa-angle-right"></i>AGB</a> </li> <li> <a href="contact-us.html"><i class="fa fa-angle-right"></i>Anmelden</a> </li> </ul> </nav> <button class="btn btn-responsive-nav btn-inverse" data-toggle="collapse" data-target=".nav-main-collapse"> <i class="fa fa-bars"></i> </button> </div>
I am building an ASP.NET application. Interesting thing is: when the search box does not exist then a postback to the server occurs which makes the menu collapse. When I add the search box block then no postback occurs and the menu works fine.
The page is not public available yet, I could provide you with the html files though if that helps.
Thanks
JJ
October 28, 2014 at 10:59 pm #10004646Support
KeymasterHello, this thread can be helpful:
Please let me know if the problem persists.
Thanks.
October 29, 2014 at 3:41 pm #10004670CrazyDoubleJ
Participantwonderful, now it works like a charm!
thank you very much for your great support!
-
AuthorPosts
This topic is marked as "RESOLVED" and can not rceive new replies.