Archived topic
Navigation gone om mobile devices
5 replies · Started by Peer Elmelund on June 2, 2015
Hi,
The navigation does not shown on mobile devices. How can I display the mobile navigation on tablet/smartphones?
Hi there,
Remove this line from your child theme's style.css file:
@import url('../generatepress/style.css');
That will fix this issue, plus a lot of other ones :)
Thanks :)
No problem :)
Hi Tom, like Peer I found that the main menu of my GP-themed (with child theme) site disappeared on narrow-width screens, or when I narrowed my desktop browser a lot.
When I deleted that @import line from the child theme (which I have activated), I was surprised the site still worked (and the mobile menu appeared as promised). Isn't that @import line essential to making ANY child theme work? Please educate me, thank you.
Hi Jim,
It used to be, but using an @import like that doesn't have very good performance.
Instead, GP detects if you're using a child theme, and includes all of the necessary stylesheets in a more efficient way :)
