- This topic has 15 replies, 2 voices, and was last updated 3 years, 5 months ago by Leo.
-
AuthorPosts
-
November 14, 2020 at 1:38 pm #1531491Bernhard
Hello,
I want to use the slideout menu for desktop and mobile. For this, I have set the mobile breakpoint in the primary navigation to 2.000 px, is this the right way to do it?The problem I have now is that the hamburger menu (on the left) covers the navigation logo. I would like therefore to have the navigation logo in the center. How can I do this?
Furthermore, in the sticky navigation the navigation logo is on the left and the hamburger menu on the right. This is confusing.
See the actual setup on my test page.
November 14, 2020 at 4:07 pm #1531560LeoStaffCustomer SupportHi there,
I want to use the slideout menu for desktop and mobile. For this, I have set the mobile breakpoint in the primary navigation to 2.000 px, is this the right way to do it?
You shouldn’t need to change the breakpoint.
Just make sure the off canvas panel is set to ON, then follow the instruction here:
https://docs.generatepress.com/article/off-canvas-panel-overview/#use-off-canvas-menu-onlyNovember 15, 2020 at 2:23 am #1531802BernhardNow I have the hamburger button on desktop on the right and on mobile on the left. In both cases the navigation logo is not there. In the sticky navigation is the hamburger button on the right and the navigation logo on the left.
Is it possible to have a unique layout with the hamburger button on the left, the navigation logo in the center and the search button on the right?
November 15, 2020 at 10:47 am #1532522LeoStaffCustomer SupportThe navigation logo is a very old option and should not be used anymore.
Can you remove that and upload a logo in the site identity field?
Please also disable the caching plugin when we are helping.
Thanks
November 15, 2020 at 11:57 am #1532594BernhardOK, done. I’ve prepared also a temporary access.
November 15, 2020 at 2:49 pm #1532706LeoStaffCustomer SupportCan you activate this option first?
https://docs.generatepress.com/article/navigation-as-a-header/November 15, 2020 at 2:57 pm #1532717BernhardDone.
November 15, 2020 at 3:08 pm #1532723LeoStaffCustomer SupportSorry one more thing.
Can you use the Flexbox version of the theme under Customizer > General?
It should make a layout like this much easier.
November 15, 2020 at 3:18 pm #1532729BernhardOK, done.
November 15, 2020 at 3:29 pm #1532736LeoStaffCustomer SupportThanks. Now try this CSS:
.inside-navigation .navigation-branding { position: absolute; top: 0; left: 50%; transform: translateX(-50%); margin-left: 0 !important; } @media (min-width: 769px) { .main-navigation .menu-bar-items { flex: 1; flex-direction: row-reverse; } .main-navigation .menu-bar-item.slideout-toggle { margin-right: auto; } } @media (max-width: 768px) { .main-navigation.has-branding .menu-toggle { order: -1 !important; } }
November 15, 2020 at 3:47 pm #1532751BernhardOK, this works on desktop and tablet, but on mobile the toggle is still on the right.
November 15, 2020 at 4:57 pm #1532798LeoStaffCustomer SupportEdited the CSS here:
https://generatepress.com/forums/topic/slideout-navigation-logo/#post-1532736November 15, 2020 at 11:44 pm #1532948BernhardNo change, on mobile the toggle is still on the right.
November 16, 2020 at 9:01 am #1533672LeoStaffCustomer SupportEdited it slightly:
https://generatepress.com/forums/topic/slideout-navigation-logo/#post-1532736Please try again.
Let me know 🙂
November 16, 2020 at 11:11 am #1533788BernhardHi Leo,
yes, now it works. Great :).Some more questions:
1. The hamburger button has the correct color, but when the navigation is slided out, the close button “X” is white. How can I configure this.2. How can I set the navigation logo height? The actual height of the logo is 103px and I don’t want to have a very big file. The logo actually is shown big only when I set the menu item height in the primary navigation to the double.
3. In the slideout menu, how can I configure the width of the background behind the menu and how the color of the overlay on the right.
Thank you.
-
AuthorPosts
- You must be logged in to reply to this topic.