- This topic has 21 replies, 4 voices, and was last updated 4 years, 8 months ago by Leo.
-
AuthorPosts
-
August 24, 2019 at 3:59 pm #992576Liran
Hey,
Is there a way to position the site title at the center, while the hamburger menu is on the left and the navigation search is on the right (both on desktop and mobile)?
Thanks!
August 24, 2019 at 8:51 pm #992641LeoStaffCustomer SupportHi there,
Some CSS is required for that.
Can you first activate this option:
https://docs.generatepress.com/article/navigation-as-a-header/And add the off-canvas menu on desktop like this:
https://docs.generatepress.com/article/off-canvas-panel-overview/#use-off-canvas-menu-onlyThen activate navigation search:
https://docs.generatepress.com/article/navigation-search/So that your header consists of the three items you want?
Then link me to your site and I’ll tackle the CSS 🙂
August 24, 2019 at 8:59 pm #992643LiranDone, I’ve also added the URL.
August 25, 2019 at 3:54 am #992747DavidStaffCustomer SupportHi there,
can you double check you have the Navigation as Header checked? Also whilst you’re there activate the Mobile Header making sure you add the Mobile Header logo
August 25, 2019 at 7:15 am #992865Lirancan you double check you have the Navigation as Header checked?
When this option is on, the site title disapper. I’m using the hook Tom suggested here to color the second part of my logo via HTML: html tags in site title
activate the Mobile Header making sure you add the Mobile Header logo
Tried that with site title, which made it look tiny.
August 25, 2019 at 7:55 am #993010DavidStaffCustomer SupportSorry missed that, try this CSS:
.site-branding { position: absolute; left: 50%; transform: translatex(-50%); z-index: 1000; } .main-navigation { width: 100%; } .main-navigation ul, .inside-header { display: flex; } .main-navigation li.search-item { order: 2; margin-left: auto; }
August 25, 2019 at 8:18 am #993028LiranLooks fantastic on desktop. However, on tablet and mobile, there are two menus and search boxes.
August 25, 2019 at 8:28 am #993033DavidStaffCustomer SupportAre you seeing that on the front end? Or only in the customizer?
If its a problem on the front end add back the CSS and let me know,August 25, 2019 at 10:15 am #993105LiranAre you seeing that on the front end? Or only in the customizer?
Both.
add back the CSS and let me know,
You can take a look now.
August 25, 2019 at 10:37 am #993120DavidStaffCustomer SupportAah its the blank primary nav – try adding this CSS:
.main-navigation .menu-toggle { display: none; }
August 25, 2019 at 10:39 am #993122LiranThanks! That worked.
August 25, 2019 at 10:42 am #993124DavidStaffCustomer SupportGlad to be of help
August 25, 2019 at 10:43 am #993125LiranI do have a few questions:
Why does the search bar show two icons on tablet/mobile? And how can I change the background of the search query?
August 25, 2019 at 12:06 pm #993170LeoStaffCustomer SupportI’m not seeing 2 search icons on mobile/tablet. Have you solved this?
As for search colors, this should help:
https://generatepress.com/forums/topic/issue-with-search-field-in-primary-menu/#post-977986August 25, 2019 at 12:10 pm #993174LiranI’m not seeing 2 search icons on mobile/tablet
Did you click the search icon?
-
AuthorPosts
- You must be logged in to reply to this topic.