- This topic has 24 replies, 7 voices, and was last updated 8 years, 1 month ago by
Leo.
-
AuthorPosts
-
March 30, 2017 at 1:43 pm #299576
Jacks McNamara
Is the code available yet, or are you still working on that?
Thanks so much for being awesome!
March 30, 2017 at 3:10 pm #299607Antonio
Tom I understand what you mean, but what I want to create is just one navigation menu with the logo in the middle. What we are making right now leave us two menus in mobile. Here is an example from squarespace: https://pacific-demo.squarespace.com/
Like always thank you for your time you are the best!!!!
March 30, 2017 at 4:39 pm #299627Tom
Lead DeveloperLead DeveloperJacks – this is exactly the exact process that was used and works great: https://generatepress.com/forums/topic/feature-request-for-header-and-navigation-layout/#post-266841
The “hardest” part there is simply mimicking your secondary navigation styles with your primary navigation styles.
Antonio – the code that Squarespace is using is pretty bad. Wouldn’t feel right about telling you how to mimic what they did.
If you only want one mobile menu, this method is probably your best bet: https://docs.generatepress.com/article/centering-logo-navigation/
April 4, 2017 at 4:00 pm #301785Jacks McNamara
So I tried the second option (the article about centering your logo in your navigation with only one menu), and I’m having 2 issues:
a) the logo isn’t centered and
b) the logo only displays on the homepage. On any other page it shows a broken image link. (I used a relative url – does that have anything to do with it?)I temporarily took the dev site off password protection so you can see it. The site is here. The hideous design is someone else’s – I’m re-doing the site they built, don’t judge me by this thing.
April 4, 2017 at 4:50 pm #301796Tom
Lead DeveloperLead DeveloperThat’s the issue with the second method, it requires that the menu items be relatively even on either side of the logo to be centered.
The image URL has to be absolute because of the way WP handles permalinks.
August 14, 2017 at 8:52 am #365737Joe
Curious to know if anyone here has refined this technique? Clients are always asking…
Thanks everyone!
JosephAugust 14, 2017 at 9:20 am #365752Jacks McNamara
Update: I used Tom’s suggestion above, to use an absolute url for the logo image, and it worked great. I do have to keep the number of menu items on each side of the logo balanced to keep it centered. The finished website in question is here: http://www.robyntwiley.com/. (The design is a little tacky because the client has tacky tastes, IMHO, but what are you going to do? It made her happy.)
.August 14, 2017 at 11:44 pm #366103Tom
Lead DeveloperLead DeveloperThat’s currently the best solution still 🙂
February 10, 2018 at 3:11 pm #493220Aein
Hi Tom, I would really like this where the logo is in the middle, where the menu isn’t relatively even.
I have followed your instructions here https://docs.generatepress.com/article/centering-logo-navigation/
but the logo is still not dead center.What is the status and best way to do this?
I do not want to split the menus like suggested in this thread because of UX for the mobile menu.
February 10, 2018 at 6:59 pm #493310Leo
StaffCustomer SupportHave you tried creating a separate menu for mobile and use the slideout navigation?
Or you prefer the normal navigation?
-
AuthorPosts
- You must be logged in to reply to this topic.