- This topic has 24 replies, 3 voices, and was last updated 7 months, 1 week ago by
Michelle.
-
AuthorPosts
-
August 14, 2022 at 8:04 am #2312660
Michelle
The generatepress preview for mobile doesn’t show the title “Menu” next to the hamburger icon, but on mobile devices, even after clearing site and browser cache, “Menu” is there, even though I don’t have anything entered into the Mobile Menu Label in Primary Navigation, or in Desktop Toggle Label in Customizing>Layout>Off Canvas Panel. For good measure, I checked Secondary Navigation settings, and see that the Mobile Menu Label there is also blank. I don’t see where the “Menu” title is coming from.
August 14, 2022 at 10:12 am #2312704Leo
StaffCustomer SupportHi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-informationLet me know 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 14, 2022 at 11:59 am #2312761Michelle
Sure. See below.
I added a generate_menu_item since I last wrote this so I can’t see the title “Menu” at the moment, perhaps since it is crowded out by the buttons that are now there. I have a feeling it is still there.
I’m trying to achieve a hamburger menu on the left of my centered site logo and a single menu item on the right, spaced nicely on mobile and sticky.
What I have is two logout buttons (one from elements generate_menu_item and one from primary navigation that I can’t seem to get rid of) and a hamburger menu that is hidden on mobile. The hamburger menu triggers Off Canvas Panel.
There is a little CSS in my Customizer that could be complicating things.
August 14, 2022 at 6:16 pm #2312882Fernando Customer Support
Hi Michelle,
Can you try to set the Mobile Menu Breakpoint in Appearance > Customize > Layout > Primary Navigation to 2000px first, then let’s try to see what it would look like, and how we can fix it.
August 15, 2022 at 9:50 am #2313623Michelle
I set it to 2000px, and the “menu” title is there; the login-logout button is not.
August 15, 2022 at 5:24 pm #2313894Michelle
I’ve tried to make changes to this all day, but without success. I am still without a login-logout button and my site logo is off center to the left. Any thoughts?
August 15, 2022 at 5:44 pm #2313901Fernando Customer Support
Great! Now try adding this CSS:
.menu-bar-items .wp-block-navigation__container{ display: block; }
Let me know how it goes.
August 15, 2022 at 6:01 pm #2313909Michelle
FINALLY! Yes, it shows now.
Can I move it t o the right and keep the hamburger menu to the left? And as a button instead of the word?
I am so grateful.
August 15, 2022 at 6:11 pm #2313917Fernando Customer Support
Try adding this:
.site-logo { position:absolute; left: 50%; top: 50%; transform:translate(-50%,-50%); }
August 15, 2022 at 6:15 pm #2313923Michelle
Fernando?
You are a genius. That placed it to the right. Awesome!
To make it a “button”, how do I tweak this?
/*Styles login-logout nav item to look like a button*/ .main-navigation .main-nav ul li.login-logout a { font-size:11px; padding: 8px; background-color: #b80000; color: #ffffff; border-radius: 5px; line-height: 8px; margin: 10px 10; } .login-logout { position: -webkit-sticky; position: sticky; line-height: 0px; left: 20px } nav .inside-navigation .site-logo { margin-bottom: 0; }
August 15, 2022 at 6:27 pm #2313926Fernando Customer Support
Try replacing those with just this:
/*Styles login-logout nav item to look like a button*/ .menu-bar-items ul li.login-logout a { font-size:11px; padding: 8px; background-color: #b80000; color: #ffffff; border-radius: 5px; line-height: 8px; margin: 10px 10; }
August 15, 2022 at 6:37 pm #2313930Michelle
You just made my week. Thank you! It’s perfect.
🙂August 15, 2022 at 6:40 pm #2313935Michelle
Oops! I still see “Menu” title showing next to hamburger menu. It doesn’t show in the editing dashboard, for some reason. Only on the front end.
August 15, 2022 at 6:44 pm #2313939Fernando Customer Support
Have you left the toggle label in Appearance > Customize > Layout > Off Canvas Panel blonk/empty?
August 15, 2022 at 6:45 pm #2313940Michelle
Yes
-
AuthorPosts
- You must be logged in to reply to this topic.