- This topic has 13 replies, 5 voices, and was last updated 3 years, 2 months ago by
Fernando.
-
AuthorPosts
-
November 29, 2020 at 12:19 am #1555945
Jeff
I’ve got sticky on, mobile header on, navigation as header on. When I enable search it appears on the left, instead of the right, and the menu moves over to the right. I’m centering the logo with:
/* This centers nav branding */
.navigation-branding, .site-logo {
position: absolute;
top: 0px;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
z-index: 200;
}Any way to get search on the right and the menu on the left?
November 29, 2020 at 9:32 am #1556811David
StaffCustomer SupportHi there,
can you share a link to your site ?
November 29, 2020 at 4:46 pm #1557381November 30, 2020 at 3:29 am #1557978David
StaffCustomer SupportTry this CSS:
.main-navigation .inside-navigation { flex-direction: row-reverse; }
November 30, 2020 at 6:30 am #1558267Jeff
This is great! The only thing is that the search bar text starts on the left (on top of the menu icon), rather than closer to the search icon. Any suggestions?
November 30, 2020 at 6:54 am #1558570David
StaffCustomer Supporttry this CSS:
.navigation-search.nav-search-active { text-align: right; } .navigation-search input[type="search"] { max-width: 400px; }
Note – you can set the Search bar colors in Customizer > Colors > Primary Navigation
November 30, 2020 at 6:58 am #1558577Jeff
That’s cool but on mobile it wraps on top of the logo or menu icon. My guess is the text-align: right isn’t working as it should, or there needs to be a starting point on the right in some other way.
November 30, 2020 at 8:16 am #1558712Jeff
Ok, I added text-alighn:right to this:
.navigation-search input[type=”search”] {max-width: 200px; text-align: right;}
That works now. But, I have a problem in that when one clicks on the search icon, there is no visual queue that one can know there is a text box present and to start typing.
November 30, 2020 at 12:39 pm #1559157Leo
StaffCustomer SupportWhat if you change the colors under Customizer > Colors > Primary Navigation > Navigation Search?
November 30, 2020 at 8:49 pm #1559667Jeff
Alright, that works well. I had to add a margin to get the alignment, but this works for me. Thanks!
December 1, 2020 at 10:28 am #1561551Leo
StaffCustomer SupportNo problem 🙂
July 17, 2022 at 10:07 am #2285384Martins
Hi I’m having issues moving my menu to the left on mobile, centralizing the logo title and making the search icon remain on the right. can you please help? thanks
July 17, 2022 at 10:07 am #2285385Martins
Hi I’m having issues moving my menu to the left on mobile, centralizing the logo title and making the search icon remain on the right. can you please help? thanks
July 17, 2022 at 5:52 pm #2285542Fernando Customer Support
Hi Martins,
To have a better understanding of the issue, may you kindly start a new topic and provide the link to the site in question?
You may use the private information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Hope to hear from you soon.
-
AuthorPosts
- You must be logged in to reply to this topic.