Home › Forums › Support › Switch to mobile menu at 950px instead of the default which makes the menu wrap
- This topic has 15 replies, 2 voices, and was last updated 10 years, 6 months ago by
Tom.
-
AuthorPosts
-
February 4, 2016 at 8:49 pm #170523
Tom // DiamondPigman
Google’s results have not worked, looking for your help here, Developer People
February 4, 2016 at 8:56 pm #170525Tom // DiamondPigman
I meant 945, but I don’t think it would make much difference
February 4, 2016 at 10:10 pm #170540Tom
Lead DeveloperLead DeveloperHi there,
Try adding this CSS: https://gist.github.com/generatepress/c23aef2d05807c39bb32
Just adjust the 768px to whatever value you like.
Adding CSS: https://generatepress.com/knowledgebase/adding-css/
Let me know 🙂
February 4, 2016 at 10:25 pm #170543Tom // DiamondPigman
Nope, that seems to make the menu button disappear completely, as this gif demonstrates
February 4, 2016 at 10:25 pm #170544Tom // DiamondPigman
Apart from that, it seems to work fine
February 4, 2016 at 10:35 pm #170546Tom
Lead DeveloperLead DeveloperAny chance you can link me to your site?
February 4, 2016 at 10:40 pm #170548Tom // DiamondPigman
Well i did have to put in my website to be able to post this, but http://diamondpigman.co.uk
February 4, 2016 at 10:46 pm #170549Tom
Lead DeveloperLead DeveloperThat’s odd, this is all I’m seeing printed in the source:
<style type="text/css">@media screen and (max-width: 945px)</style>Seems a lot of the code was stripped out?
February 4, 2016 at 10:48 pm #170550Tom // DiamondPigman
I’m not sure. I used the “Simple CSS” plugin that was recommended, sand just pasted in the CSS you gave me, just changing the number at the top
February 4, 2016 at 10:51 pm #170552Tom
Lead DeveloperLead DeveloperWhat version of Simple CSS are you using? Did you just install it?
Any chance you can try pasting it again and saving?
February 4, 2016 at 11:00 pm #170559Tom // DiamondPigman
Version 0.2 of SimpleCSS
Have saved it. Seems to almost work now; the menu seems to go under the logo on the left, rather than staying at the top right by the search iconFebruary 5, 2016 at 10:56 pm #170825Tom
Lead DeveloperLead DeveloperAh, try adding this as well:
@media (max-width: 768px) { .menu-logo .main-navigation .menu-toggle, .sticky-menu-logo .main-navigation.navigation-clone .menu-toggle { display: inline-block; float: right; clear: none; width: auto; } .menu-logo .main-navigation .mobile-bar-items { position: relative; float: right; } }Just adjust 768px again – or add the contents of the media query in the other query.
Let me know 🙂
-
This reply was modified 10 years, 6 months ago by
Tom.
-
This reply was modified 10 years, 6 months ago by
Tom.
February 6, 2016 at 1:24 am #170841Tom // DiamondPigman
Added that. You’ll have to check though; I can’t check on my phone
February 6, 2016 at 9:05 am #170925Tom
Lead DeveloperLead DeveloperYou have to keep all of the original CSS as well as the most recent stuff.
February 6, 2016 at 3:17 pm #170994Tom // DiamondPigman
Right, both of them should be in
-
This reply was modified 10 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.