- This topic has 11 replies, 3 voices, and was last updated 7 years, 2 months ago by Tom.
-
AuthorPosts
-
February 4, 2017 at 1:21 pm #274278Fredrik
As the title says. When I center the navigation, the navigation menu gets pushed to the right.
So basically, the branding logotype makes the nav NOT centering correctly.Also, the search icon creates an illusion that the nav items aren’t centered. Would be good if the search icon is correctly centered with the nav.
PS: Removing the search icon makes the nav move even more away from the center.
February 4, 2017 at 1:50 pm #274295LeoStaffCustomer SupportHi Fredrik,
Sorry I’m not quite sure what you meant or trying to achieve?
Are you trying to have logo in the center with menu items on both side or something?
What setting are you using for Navigation Location? (Customizer > Layout > Primary Navigation)
Let me know.
February 4, 2017 at 2:19 pm #274320FredrikNo, i’m not trying anything more than a centered navigation. Regular navigation with a normal logotype on the left side. Setting the navigation alignment function to “center” is not working properly. It’s not center aligned.
February 4, 2017 at 2:37 pm #274333FredrikThis is more of an bug report than anything else.
If the navigation logotype is added to a normal centered menu, the menu will not properly center as it gets pushed to the right by the logotype.
February 4, 2017 at 2:46 pm #274337LeoStaffCustomer SupportDo you have the Navigation Location set to either Float Right or Float left?
If so it’s not a bug. Normally users would have too many menu items for the logo to be center while the navigation float to the left or right.
If you set the Navigation Location to either above header and below header then the logo would be centered.Let me know if this is what you meant. Might be easier to show me your site if I still misunderstood it.
February 4, 2017 at 2:52 pm #274344LeoStaffCustomer SupportNevermind I think I got what you meant but it’s still not a bug.
Similar reason to what I mentioned above, normally users would have too many menu items for the navigation to be centered and still have room for the logo on the left.
If you can show us the site we might be able to help you with some CSS.
Let me know.
February 4, 2017 at 2:53 pm #274347FredrikHere you can clearly see the settings and the misalignment of the menu. Removing the Logotype will make the menu properly aligned.
I have not tinkered with the CSS of the theme yet, just playing around to get comfortable with the theme.
February 4, 2017 at 3:05 pm #274356LeoStaffCustomer SupportRight. Like I mentioned above, normally there would be too many menu items for the navigation to be centered while leaving room for the logo on the left so people don’t need that setting. Imagine if you have 5 menu items instead of 3, it wouldn’t look very good as the first menu item would be right next to the logo on the left.
If you would like to have center navigation, you could try upload the logo in Customizer > Site Identity and set the Navigation Logo Position to Static Only.
February 4, 2017 at 3:52 pm #274370FredrikSo basically, I can’t have a perfectly aligned center menu if I want to have the logo on the left?
I can center it myself, that’s no problem. The website is on a local devenvironment. Just thought that this behaviour wasn’t proper. If I find a setting named “center”, I really think it should be centered.
February 4, 2017 at 4:04 pm #274371LeoStaffCustomer SupportThere is a workaround. You could try by splitting the header into three sections:
https://generatepress.com/forums/topic/header-layout/#post-217337The setting Center is really for when the navigation is above or below the header.
February 4, 2017 at 4:07 pm #274372LeoStaffCustomer SupportThat link I provided above is talking about the same issue as you by the way.
February 4, 2017 at 7:36 pm #274414TomLead DeveloperLead DeveloperBest thing to do in this case is to make the navigation logo absolutely positioned:
.navigation-logo { position:absolute; left: 0px; }
Relative elements will push centered elements over, which is what’s happening here.
Making it absolute will take the logo out of the equation so the menu items can be center.
-
AuthorPosts
- You must be logged in to reply to this topic.