-
1job.ai
Hi,
I was wondering if there is a way to change the menu alignment .
I want to achieve something like the attached image below.
It would b great if you can help me with this.
Thank you -
David
Hi there,
what happens on mobile?
ie. where would the login and register buttons go.
Would they show inside the mobile header or inside the navigation menu ? -
1job.ai
Hi David,
I have attached mobile menu design below, also login and register button has external links.Thanks
-
David
OK. We can do the desktop first.
And then revisit the mobile.
But first you have this CSS on your site which is affecting the menu list:ol, ul { margin: 0 0 1.5em 1.5em !important; }Can you replace that witH:
#page ol,#page ul { margin: 0 0 1.5em 1.5em; }Then it will only affect lists in the page content. Not the navigation.
1. Add this CSS to your site:
@media(min-width: 769px) { .main-navigation, .main-navigation .main-nav { flex: 1; } .main-navigation .main-nav .pushright { margin-left: auto; } }`
2. In Appearance > Menus give the Register <a href=”https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes”>menu item a CSS Class</a> of
pushright3. In Customizer > Layout > Primary Navigation and disable the Nav Search.
Once thats done. We can look at the mobile menu.
-
1job.ai
Awesome, Completed the above steps. We can look into mobile now,
Thank you -
David
OK, to add the button into the Mobile header.
1. Create a new Block Element in Appearance > Elements:
https://docs.generatepress.com/article/block-element-hook/
2. Set the Hook to
menu_bar_itemsthis hook is positioned to the side of the menu / hambuerger menu.
3. Set the Display Rules > Location to
Entire Site4. Add your button to the element, and in Advanced > Additional CSS Classes add:
hide-on-desktop hide-on-mobileAfter that can you disable the Off Canvas Panel in Customizer > Layout > Off Canvas so I can look at the mobile menu item styles
- You must be logged in to reply to this topic.