- This topic has 10 replies, 3 voices, and was last updated 1 year, 7 months ago by
Leo.
-
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 ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/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; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/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
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/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?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/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 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.