Jump to content

Archived

This topic is now archived and is closed to further replies.

mistrmint

iPad Portrait Menu Responsive Handling

Recommended Posts

mistrmint+    3
mistrmint

What line do I have to change in the NavBar Section's style.less file to make the iPad view the menu as mobile when in portrait mode?

 

I understand I have to edit the @media queries but which one.

 

The menu must appear as mobile in portrait mode and as a full menu in landscape mode.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

In your custom CSS try adding the following:

 

@media (max-width: 766px) {
#site .navbar .nav-collapse {
overflow: hidden;
height: 0;
clear: both;
}
}

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mistrmint+    3
mistrmint

Still no luck. Same results.

Share this post


Link to post
Share on other sites
mistrmint+    3
mistrmint

Will it matter if I am using the "Full Width" Navbar?

Share this post


Link to post
Share on other sites
GetMeWebDesign+    115
GetMeWebDesign

If you are wanting it for a tablet, then 766 isnt enough! Try @media (max-width: 899px)


Chrome Developer tools - please use them. If you are not sure how, then it is easy to learn

Be inventive in your keyword search of the forum ie Navi > Navbar > menu > tabs > font > color. Your answer lies there somewhere!

Share this post


Link to post
Share on other sites
mistrmint+    3
mistrmint

Nope, still getting full menu.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

The code I gave you should work, can you add it again and reply here when you have done so please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

OK, try this:

 

@media (max-width: 780px) {
#site .navbar .nav-collapse {
overflow: hidden;
height: 0;
clear: both;
}
}
 
@media (max-width: 780px) {
#site .navbar .nav-btn-navbar {
display: inline-block;
}
}

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mistrmint+    3
mistrmint

Ok, we seem to be getting somewhere now. It shows the mobile menu BUT the full menu also appears.

 

ScreenShot2014-06-09at81103AM_zpseb4b053

Share this post


Link to post
Share on other sites
mistrmint+    3
mistrmint

It seems to be over-riding the overflow and height so I added "!important" and it seems to work now.

 

#site .navbar .nav-collapse {
  1. overflowhidden !important;
  2. height0 !important;
  3. clearboth;
}
  • Like 1

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Thanks for informing us the issue has been resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • dwpoyner
      By dwpoyner+
      Not sure exactly what is causing the issue. For some reason, why you view my site on mobile, the menu does not show up. It will pop up, but it is black. You can check it out here: http://dev.caryfbc.org. I'm also attaching a screenshot where I shrunk my browser down. Any suggestions?

    • khat
      By khat+
      I think I may have installed pagelines pro incorrectly, and then used features incorrectly. I installed first platforms framework theme and then the child, thinking I could do setup for child later. I tried to set up a background image, and tried custom css feature in pagelines dashboard. I had mistakes in my css, and just thought that if I deleted the info in the css custom feature in pagelines dashboard that the new information would overwrite the old info. The background image didn't respond at all, probably because I didn't have the child directory renamed. I then tried to use the LSS plugin to create css and added more css, possibly, somewhere -sigh-. I never did change the background image and get it placed properly. I used a workaround and in nested containers I placed a background image which worked well enough, so I moved on to try to create my nav bar/ menu bar. When I go to the Menus panel, there is NO area where I can place a menu on a page. I have read and reread and re- re- reread the instructions for placing a menu. I've used the pagelines editor to place a menu, however only HOME shows up. I've been at this for many hours. I've since uninstalled all of my pagelines items and reinstalled, thinking that it would restore all my changes to default, but no, it is still all there, with all my unresolved issues. I am completely at a loss as to what to do next.
    • ivaemer
      By ivaemer+
      I've got the problem with Onepage plugin ..
      First two sections - Intro and Gallery Module are not showing on iPhone and iPad...help asap please
       
       
    • Jarek
      By Jarek+
      How to make the Impulse menu sticky?
      Here is a site that seems like it is doing just that: http://www.manhattanperiodontist.com/
      Here is the site I am working on: http://boeriu.digitalvector.com/ 
      I have no problem showing the menu at the bottom, but when scrolling up it does not stick.  I tried to add Nav Pro menu but when I do that, it just shows on top and no matter what I try is not working as I want it to.
      Any suggestions?
    • Dave
      By Dave+
      1) Toggle menu on mobile devices does not work properly, combination Chrome 56.0.2924.87 with Android 6.0.1

      2) Mobile / Default Menu > Set the primary/default navigation for your site. This will be used in the pop out mobile menu and as the default in navigation sections. Does not work.
×