- This topic has 13 replies, 2 voices, and was last updated 4 years, 3 months ago by David.
-
AuthorPosts
-
December 22, 2019 at 6:36 pm #1111784Gabriele
Hello there!
I have been following the help articles to set up Navigation as a Header on my website. Everything looks really good on desktop and tablet.
Unfortunately, when the menu is collapsed into the three-lines-icon form and the user expands it there’s no way to go back to the homepage (considering my logo was the link to the homepage and the “menu-item-separator” is now showing up as a blank spot in the drop-down menu).
This not only looks a bit funky but really screws up the navigation strategy.
How can I have a mobile header where the logo shows big on top with the menu icon below and no menu-item separator but a text-link to “/home” maybe?Thanks in advance. (Amazing work with this theme and support is stellar!)
GDecember 23, 2019 at 4:19 am #1112049DavidStaffCustomer SupportHi there,
can you check the URL you provided as that link is not working for me.
You can edit your original topic if you need to change it.January 12, 2020 at 1:10 am #1129403GabrieleHi,
Sorry for the late reply.
I just double-checked and the address is correct. I think there were some issues with the DNS.
Anyway, should be solved in the next few hours. Can you please check again then?
Also, I believe it’s Google chrome related, so Edge or Mozilla should be fine (or at least they are from my end)Many thanks David!
January 12, 2020 at 6:36 am #1129585DavidStaffCustomer SupportNice design ๐
Can you disable the Mobile Header in Customizer > Layout > Header then i can take a look at the CSS required for that layoutJanuary 13, 2020 at 4:55 pm #1131130GabrieleHey David, thanks!
That’s disabled now.G
January 14, 2020 at 1:47 am #1131392DavidStaffCustomer SupportOk – couple of other things first.
1. In Customizer > Additional CSS – you have CSS for splitting the menu and centering the logo – can you remove this.
2. For the mobile menu – enable the Customizer > Layout > Off Canvas Panel for Mobile only and assign a new menu to this, this new menu can include your home links and no separator item.
Let me know then i can figure out the CSS changes required.
January 14, 2020 at 1:59 am #1131398GabrieleI think that should be done now!
I included in the off-canvas menu a HOME link also.Thanks,
GJanuary 14, 2020 at 6:25 am #1131620DavidStaffCustomer SupportNow replace your Simple CSS with this:
@media (min-width: 769px) { .comment-form #author, .comment-form #email { width: 48%; float: left; } .comment-form #email { float: right; } .comment-form #url { width: 100%; } /* Navigation as Header */ .inside-header { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .header-widget { order: 10; overflow: visible; } .nav-float-right .header-widget { top: auto; } .nav-float-right .header-widget .widget { padding-bottom: 0; } .site-branding, .site-logo { position: absolute; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); z-index: 200; } #mobile-header .mobile-bar-items { -webkit-box-ordinal-group: 5; -ms-flex-order: 4; order: 4; margin-left: auto; } #site-navigation { float: none; width: 100%; } .main-navigation:not(.slideout-navigation):not(.mobile-header-navigation) .main-nav>ul { display: -webkit-box; display: -ms-flexbox; display: flex; } .main-navigation .menu-item-separator { -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; } .main-navigation .menu-item-separator a { font-size: 0; background: transparent !important; } .slideout-navigation .menu-item-separator, .main-navigation.toggled .menu-item-separator { display: none !important; } } @media (max-width: 769px) { .main-navigation .main-nav ul li a { line-height: 40px; } } /* Links Underline Effect */ .inside-article p a:link, .inside-article p a:active, .inside-article p a:visited { padding-left: 0.3em; padding-right: 0.3em; color: inherit !important; text-decoration: none !important; box-shadow: inset 0px -5px 0px 0px rgba(224, 225, 226, 0.8) !important; } .inside-article p a:hover { padding-left: 0.3em; padding-right: 0.3em; background-color: rgba(224, 225, 226, 1) !important; color: inherit !important; font-weight: bold; opacity: 80%; transition: .5s; } @media (max-width: 768px) { .inside-header>:not(:last-child):not(.main-navigation) { margin-bottom: 0; } } /* MailChimp form */ .mc4wp-form input[type="submit"] { background-color: rgba(224, 225, 226, 0.75) !important; color: #1F3147 !important; transition: .25s; } .mc4wp-form input[type="submit"]:hover { background-color: rgba(224, 225, 226, 1) !important; color: #ED6B6D !important; transition: .7s; } body.page-id-91 { background-color: #DC4A5D; } .page-id-91 .inside-article { background-color: #DC4A5D; } .one-container .site-content { padding: 0; }
And the last thing to do is in Customizer > Layout > Primary Navigation set the Alignment to Center.
January 14, 2020 at 6:36 pm #1132397GabrieleHi David,
Thanks for your swift reply.
I have updated the Simple CSS with your changes and also the alignment.
Unfortunately, the effect I get is not idea: in portrait mode, the “hamburger-menu” is overlayed to the site tagline and in landscape mode, it’s all scramble of title, tagline and menu at the top of the screen.
Also, if and when I manage to hit the menu, the links are super tight to the top of the screen, can we introduce some padding between them and maybe even centre (horizontally and vertically) the elements to the whole screen?Thank you so much for your help!
GJanuary 15, 2020 at 3:06 am #1132662DavidStaffCustomer Support1. Customizer > Layout > Off Canvas Panel and increase the Menu Item Height to give them some more space.
2. Edit your Header Element and on the Site Header tab, increase the Offset Site Header Height for mobile. This will stop the nav and the content from overlapping.
January 15, 2020 at 8:46 pm #1133653GabrieleHi David!
That’s great, thank you!
The only thing that still persists is the clashing of site logo and content, (and therefore also menu hamburger) when I tilt to landscape on my mobile.
Is there any way to fix this too?Thanks,
GJanuary 16, 2020 at 4:18 am #1133884DavidStaffCustomer SupportSoooo …. lets try this CSS to reduce the Line-height of the mobile toggle ( without effecting the menu items ):
.menu-toggle { line-height: 60px !important; }
And then in the Customizer > Layout > Header – in Mobile View reduce the Header Padding to say 10px.
Between the two they should clear the menu toggle from the hero text.
January 16, 2020 at 8:03 pm #1134647GabrieleFantastic, that cleared some space.
Thank you sop much for the tips David: Absolutely great support as always!G
January 17, 2020 at 3:23 am #1134841DavidStaffCustomer SupportHappy to be of help ๐
-
AuthorPosts
- You must be logged in to reply to this topic.