- This topic has 11 replies, 3 voices, and was last updated 5 years, 7 months ago by
Leo.
-
AuthorPosts
-
October 7, 2020 at 10:22 am #1477019
Jaime
Hey, GeneratePress Team!
How can I place the search box below the logo in mobile view and front of the logo?
Please see this screenshot, this is how I want: https://ibb.co/LtwSzRn
Thanks for the help in advance!
October 7, 2020 at 10:30 am #1477034Leo
StaffCustomer SupportHi there,
Any chance you can link us to the site in question so I can see your current layout?
You can use the private information field.
Let me know 🙂
October 7, 2020 at 10:36 am #1477046Jaime
I have shared both the sites URL.
I want to create exact same primary navigation, for both mobiles as well as the desktop view… As this site is having
October 7, 2020 at 11:02 am #1477115Leo
StaffCustomer SupportCan you disable LiteSpeed cache so I can inspect the code better?
October 7, 2020 at 11:13 am #1477128Jaime
Disabled the LiteSpeed cache.
October 7, 2020 at 11:17 am #1477141Leo
StaffCustomer SupportSo first you want to modify the header padding with the mobile toggle activated so the content is centered:
https://www.screencast.com/t/e2PfqWDdZGL
https://docs.generatepress.com/article/header-padding/Then we can use this CSS to reverse the order of logo and search field:
@media (max-width: 768px) { .inside-header { display: flex; flex-direction: column-reverse; } }Adding CSS: https://docs.generatepress.com/article/adding-css/
October 8, 2020 at 1:46 am #1478013Jaime
I did that, change the padding in header and also applied the CSS you shared above.
How can I place the menus https://prnt.sc/uvb2tu in one line as in the example site? And also how can I move menus only to right side, beside the cart button?
October 8, 2020 at 4:51 am #1478268David
StaffCustomer SupportHi there,
to make those menu items all fit on one row – you would have to reduce the Typography > Primary Navigation to around 10px and the menu item width to around 5px for to fit on the smallest mobile devices.
The problem with that is those links become difficult to click and google will flag that as a UI/UX issue.
October 8, 2020 at 7:14 am #1478478Jaime
Okay! Got you!
And how can I move them to the right side, only menus?
October 8, 2020 at 8:22 am #1478724Leo
StaffCustomer SupportSo we are going to use a toggle instead now right?
If so can you change the mobile navigation breakpoint back to the default 768px?
https://docs.generatepress.com/article/mobile-navigation/#initiating-the-mobile-navigation-at-a-different-widthOctober 8, 2020 at 9:16 am #1478826Jaime
No, I want to move the menus on right for pc view only.
October 8, 2020 at 10:00 am #1478904Leo
StaffCustomer SupportHave you tried the alignment option?
https://docs.generatepress.com/article/navigation-layout/#navigation-alignment -
AuthorPosts
- You must be logged in to reply to this topic.