- This topic has 11 replies, 2 voices, and was last updated 3 years, 11 months ago by Leo.
-
AuthorPosts
-
May 2, 2020 at 12:17 pm #1266659Terry
I’ve turned off the mobile menu because I want it to display in my header. If you pull up the page in mobile view, you’ll see the menu items listed in the right bottom part of the header. So, where the first item, About Us, I’d like to have a hamburger icon instead of the list.
So, is there a function I can apply that replaces the list with a hamburger?
I built the header with css grid, so if you go into chrome inspect, and hover over the div with class header-widget, you can see the grid pattern. In order to achieve this, I use a navbar short code instead of the normal header navbar, and built the component pieces with 5 header widgets. Your ability add header widgets is perfect for implementing grid.
May 2, 2020 at 2:59 pm #1266775LeoStaffCustomer SupportHi there,
I think the best solution would be to turn the mobile menu back on so we would have the default toggle.
Then we can use some CSS to tweak it to achieve the same layout as you have right now.
Can we try that first? Might take a few attempts but that’s the best way to use the toggle.
May 3, 2020 at 1:16 pm #1267932TerryOkay, turned it back on.
May 3, 2020 at 6:45 pm #1268123LeoStaffCustomer SupportOk now try creating a hook element and add each the content like this:
<div class="social-icons hide-on-desktop"> social icons here </div> <div class="phone-number hide-on-desktop"> phone number here </div>
Then select the inside_navigation hook.
May 4, 2020 at 5:13 am #1268610TerryDone, please take a look.
May 4, 2020 at 9:02 am #1269156LeoStaffCustomer SupportWhat was the order you want?
Menu > Social icons > Phone number > Search?
You’d want to replace
social icons here
andphone number here
with the actual content.May 4, 2020 at 9:31 am #1269203TerryDone-progress.
May 4, 2020 at 10:10 am #1269247TerryAnd yes, that sort order works.
May 4, 2020 at 2:03 pm #1269539LeoStaffCustomer SupportTry this CSS:
@media (max-width: 768px) { .main-navigation .menu-toggle { -webkit-box-flex: inherit; -ms-flex-positive: inherit; flex-grow: inherit; width: auto; -webkit-box-ordinal-group: 0; -ms-flex-order: -1; order: -1; } .main-navigation:not(.slideout-navigation) .inside-navigation { justify-content: space-between; align-items: center; } }
I would also mention that those 4 things take up a lot of space so there might not be enough room on a smaller mobile screen.
May 5, 2020 at 9:05 am #1270794TerryVery good–looks great. I got rid of the phone number on the mobile view. The only thing I might need help with now is that the order of these items switches when you page down and it goes into mobile header view. I’ll see if I can fix that myself, though. Thanks very much for your help.
May 5, 2020 at 12:44 pm #1271093TerryPlayed with flex order and got it just like I want it. Thanks again.
May 5, 2020 at 1:01 pm #1271115LeoStaffCustomer SupportGlad I could help 🙂
Nicely done!
-
AuthorPosts
- You must be logged in to reply to this topic.