- This topic has 32 replies, 4 voices, and was last updated 3 years, 1 month ago by Ying.
-
AuthorPosts
-
March 6, 2021 at 6:02 am #1684318Matthieu
It’s all starting to take shape! Thank you very much ! π
Last things:
– Is it possible to display this menu only on a computer?– Can we reduce the width of the side menu? I see it is set to: width: 300px currently. Except that if I reduce to 250px or 200px I have the βgray barβ, which reappears …
Thanks : π
March 6, 2021 at 9:52 am #1684713YingStaffCustomer Supportβ Is it possible to display this menu only on a computer?
The current layout only works when the screen is 1000px or wider that’s why we added media query in CSS.
Have you tested on mobile or ipad?
This is what it looks like on ipad:
https://www.screencast.com/t/8JSP2Kwcu8
and this is on mobile:
https://www.screencast.com/t/8JSP2Kwcu8β Can we reduce the width of the side menu?
Yes, if you change the site header width to 250px in the CSS, then change this to 250px as well:
body { margin-left: 300px; }
Also you could change the body background color to #ffffff at customizer > colors > body.
Let me know π
March 6, 2021 at 11:12 am #1684791MatthieuThank you for your reply ! By modifying the css: body {
margin-left: 300px;
}at
body {
margin-left: 200px;
}– It reduces the width of the menu but the content of the page does not move or I would like that I reduce the width of the menu to 200px, I would therefore like the content to be 200px wider. You see what I mean ? π
– For mobile and tablet display, is there a solution to put the Lightweight Social Icons in the menu and not below ?
Thanks
March 6, 2021 at 11:33 am #1684816YingStaffCustomer Supportβ It reduces the width of the menu but the content of the page does not move or I would like that I reduce the width of the menu to 200px, I would therefore like the content to be 200px wider. You see what I mean ?
I’m not sure I understand your request clearly.I changed the site header color so that you could see it more clearly:
https://www.screencast.com/t/9ZL0tEoJDNiAs you can see, your site header is now
250px
wide, so you need to change the body margin-left to250px
as well, otherwise50px
of the body background will be shown.β For mobile and tablet display, is there a solution to put the Lightweight Social Icons in the menu and not below ?
Try add this CSS:
@media (max-width: 768px) { .site-logo { order: 1; } .site-header .header-widget { order: 2; margin-top: 0; flex-basis: auto; } nav#mobile-menu-control-wrapper { order: 3; margin-left: 20px; } .inside-header .header-widget .lsi-social-icons li { margin-bottom: 0 !important; } }
March 6, 2021 at 1:33 pm #1684865MatthieuSo for the computer version it’s perfect, everything seems good to me, thank you very much.
– For the addition of this part:
@media (max-width: 768px) {
.site-logo {
order: 1;
}
.site-header .header-widget {
order: 2;
margin-top: 0;
flex-basis: auto;
}
nav # mobile-menu-control-wrapper {
order: 3;
margin-left: 20px;
}
.inside-header .header-widget .lsi-social-icons li {
margin-bottom: 0! important;
}
}The rendering is not what I expected. The menu opens upside down. π
March 6, 2021 at 2:24 pm #1684898YingStaffCustomer SupportThe example site you linked to us has the same menu style on mobile which opens upside down , thought you were trying to achieve the look of that site π
You could add this css in before the last
}
of the css in your last reply:#site-navigation { order: 4; }
March 6, 2021 at 3:40 pm #1684933MatthieuOK perfect thank you!
– Last thing, on the mobile and tablet display, when the menu is open, you can see a light gray background, how could I remove it for white?
– Can we manage the margins between the menu items (Home / blog / contact)?
Thank you so much !
March 6, 2021 at 5:23 pm #1684978YingStaffCustomer SupportYes, you could change colors at Customizing > Colors > Primary Navigation, change menu item height at Customizing > Layout > Primary Navigation.
March 7, 2021 at 3:19 am #1685212MatthieuThank you for your reply. In Personalization> Layout> Main navigation> Size of the menu item I can adjust the heights between the menu links (Home / Blog / Contact) on the computer and mobile version, the tablet version does not move and the elements are glued together.
For the colors, I modified all the backgrounds in Personalization> Colors> Header / Main Navigation / Secondary Navigation / Side panel, nothing helps there is always this gray background around “Blog / Contact” when the menu is open on mobile and tablet.
March 7, 2021 at 11:23 am #1685781LeoStaffCustomer SupportAre we referring to these options here?
https://docs.generatepress.com/article/menu-item-height-width/If so there are only desktop and mobile version available.
The breakpoint would be the mobile navigation break point.
Let me know if this helps π
March 7, 2021 at 11:49 am #1685810MatthieuYes exactly, it does not affect the space between my menu links in the tablet display …
March 7, 2021 at 5:45 pm #1686038LeoStaffCustomer SupportAre you talking about this view here?
Looks like the customizer setting is at 50px
https://www.screencast.com/t/9uGeZAGzyIs that correct?
March 8, 2021 at 4:11 pm #1687375MatthieuSo in fact I just understood the problem, let me explain:
In Personalize> Layout> Main Navigation> “Width of the menu item” It is set to 0px on the computer display and therefore tablet … This is why my menu items (Home / contact / blog) are glued together on a tablet.
Except that I cannot increase this setting otherwise it will shift these links on the computer display.
Is there a solution to manage “menu item width” only on tablet ? π
Thanks.
March 8, 2021 at 6:31 pm #1687456ElvinStaffCustomer SupportHi there,
You should be able to control the main navigation with the
.main-nav > ul li
selector.Example, adding padding to make it look wider on tablet.
@media ( min-width:769px ) and ( max-width:1024px ) { .main-nav > ul li { padding: 0 10px; } }
If you want the menu to be a hamburger on tablet like your reference site, you’ll have to change the Mobile Menu Breakpoint on customizer from 768 to 1024.
March 9, 2021 at 8:25 am #1688394MatthieuIt’s perfect ! Thanks π
-
AuthorPosts
- You must be logged in to reply to this topic.