-
AuthorPosts
-
October 8, 2023 at 2:23 pm #1421808
Hi,
I’m having a problem with the burger icon and the search icon when the screen size gets reduced. Burger icon is being duplicated and search icon is being dragged to the left and both are then covering the logo.
Also, how can I increase the padding (or space out) the nav menu items a little more? They’re a bit crammed all to the left right now… Is it possible to space the items all equally so no matter how many there are they go from side to side spaced evenly?
Thanks,
James.October 8, 2023 at 3:31 pm #1421816Hey jamesbarrell,
For your mobile menu, it looks correct up to 767px:
but at 768px it looks like you have some custom css that adds a burger menu to the left of the logo:
so please find this custom css and remove it:@media only screen and (max-width: 1366px){ nav.main_menu { display: block !important; } }
that should fix it to look like this:
Best regards,
MikeOctober 8, 2023 at 3:44 pm #1421818This reply has been marked as private.October 8, 2023 at 5:43 pm #1421828Hi,
I can get the menu items to be in one row starting at 768px with this css:@media only screen and (min-width: 768px) { #header_main_alternate > .container { margin: auto; padding: 0; } #top #header .av-main-nav > li { padding: 0; } }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
but not spaced equally across the whole width of the navigation.
After applying the css, please clear your browser cache and check.
the expected results:
Best regards,
MikeOctober 8, 2023 at 6:01 pm #1421831This reply has been marked as private.October 8, 2023 at 11:06 pm #1421847Hi,
Thanks for the feedback and the link to your example site, it helped me by seeing what they have done. When I check the site I see the break point for the mobile menu is 992px, and the set the menu item width to 14.25% and the font is a little smaller.
So to show the burger menu until 991px we will use this css:@media only screen and (min-width: 767px) and (max-width: 991px) { #top #header .av-main-nav > li.menu-item { display: none!important; } #top #header .av-burger-menu-main.menu-item-avia-special { cursor: pointer; display: block!important; } #top #header .av-main-nav > li > a { background-color: transparent !important; } .html_header_top #top .av_menu_left .main_menu { right: 20% !important; left: auto !important; } .html_header_top .av_bottom_nav_header .av-logo-container .main_menu { display: block !important; } #top #header_main_alternate { display: none; } }
the expected results:
Then to set the main menu similar to the other site we will use this css:@media only screen and (min-width: 992px) { .main_menu { display: flex; align-items: center; } .avia-menu>ul.av-main-nav { margin: 0; display: flex; justify-content: space-around; position: relative; } .avia-menu>ul.av-main-nav>li.menu-item { width: 14.25%; padding: 0; } .avia-menu>ul.av-main-nav>li.menu-item>a, .avia-menu>ul.av-main-nav>li.menu-item>a span { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; font-size: 18px; } .avia-menu>ul.av-main-nav>li.menu-item .avia-menu-text, .avia-menu>ul.av-main-nav>li.menu-item-search-dropdown { display: flex; justify-content: center; } #top #header_main_alternate .container { margin: 0 auto; padding: 0px 50px; } } @media only screen and (min-width: 1200px) { .avia-menu>ul.av-main-nav>li.menu-item { margin: 0 13px; } }
the expected results 992px:
and at larger screens 1440px:
Please give this a try.
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.Best regards,
MikeOctober 9, 2023 at 6:05 am #1421866This reply has been marked as private.October 10, 2023 at 7:30 am #1421972This reply has been marked as private.October 10, 2023 at 12:11 pm #1422007Hi,
To correct the mega menu items please change this part:.avia-menu>ul.av-main-nav>li.menu-item .avia-menu-text, .avia-menu>ul.av-main-nav>li.menu-item-search-dropdown { display: flex; justify-content: center; }
to this:
.avia-menu>ul.av-main-nav>li.menu-item>a> .avia-menu-text, .avia-menu>ul.av-main-nav>li.menu-item-search-dropdown { display: flex; justify-content: center; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
to correct the two words “Get Involved” please try to adjust the font size for the screen width, you will need to go a little smaller when that occurs, it looks like 17px instead of 18px works.Best regards,
MikeOctober 12, 2023 at 6:58 am #1422197This reply has been marked as private.October 12, 2023 at 6:03 pm #1422259Hi,
To correct this try changing the menu width from 14.25% to 13.25% and the padding from zero to 10px left and right. originally I set the padding to zero so you could have a larger font, so by adding the padding below 992px you will need to also reduce the font size so “Get Involved” will fit on one line. It looks like a font size of 14px will fit.
Please try making this adjustment, or adjusting slightly more. Otherwise feel free to include an admin login in the Private Content area below.
Best regards,
MikeOctober 13, 2023 at 4:03 am #1422314This reply has been marked as private.October 14, 2023 at 1:54 pm #1422469Hi,
I believe that I have achieved what you wished for, but I had to change the break point to 1024px instead of 992px, this is the current css:@media only screen and (min-width: 767px) and (max-width: 1023px) { #top #header .av-main-nav > li.menu-item { display: none!important; } #top #header .av-burger-menu-main.menu-item-avia-special { cursor: pointer; display: block!important; } .html_header_top .av_bottom_nav_header .av-logo-container .main_menu { display: block !important; } #top #header_main_alternate { display: none; } #top #header .av-main-nav > li > a { background-color: transparent !important; } .html_header_top #top .av_menu_left .main_menu { right: 20% !important; left: auto !important; } } @media only screen and (min-width: 1024px) { .html_header_top.html_bottom_nav_header #top #header_main_alternate .main_menu .menu-item-search-dropdown { float: left; width: 45px; } .html_bottom_nav_header #top #header_main #menu-item-search>a { padding-right: 13px; } .main_menu { display: flex; align-items: center; } .avia-menu>ul.av-main-nav { margin: 0; display: flex; justify-content: space-around; position: relative; } .avia-menu>ul.av-main-nav li { display: flex; flex-grow: 1; justify-content: center; } #top #header .av-main-nav > li:hover { background-color: #776fb1; transition: background-color 0.4s ease-in-out,color 0.4s ease-in-out,border-color 0.4s ease-in-out; } .avia-menu>ul.av-main-nav .av-burger-menu-main.menu-item-avia-special { display: none; } }
please clear your browser cache and check.
Best regards,
MikeOctober 14, 2023 at 3:16 pm #1422473Mike you’re an absolute legend!
Exactly what I was looking to achieve…
I’ll test more thoroughly but from initial examination it looks brilliant!
Can’t thank you enough.
James.
October 14, 2023 at 6:21 pm #1422479Hi,
Glad to hear, once you are done testing please let us know so we close this thread.Best regards,
MikeOctober 15, 2023 at 4:50 pm #1422558This reply has been marked as private.October 15, 2023 at 5:19 pm #1422560Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top #header_main_alternate .avia_mega_div .current-menu-item { background-color: #fff; } #top #header .av-main-nav > li > a { width: 100%; text-align: center; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeOctober 15, 2023 at 5:36 pm #1422565GENIUS!
Thank you Mike!!
October 15, 2023 at 5:37 pm #1422566October 16, 2023 at 12:35 pm #1422644Mike,
I think so. All looks good now I believe!
Thank you so much for your incredible assistance with this.
All the best!
James.October 16, 2023 at 6:42 pm #1422689Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Duplicated Burger Icon and more padding to each nav item’ is closed to new replies.