Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #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.

    #1421816

    Hey jamesbarrell,
    For your mobile menu, it looks correct up to 767px:
    Enfold_Support_3616.jpeg
    but at 768px it looks like you have some custom css that adds a burger menu to the left of the logo:
    Enfold_Support_3618.jpeg
    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:
    Enfold_Support_3620.jpeg

    Best regards,
    Mike

    #1421818
    This reply has been marked as private.
    #1421828

    Hi,
    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:
    Enfold_Support_3626.jpeg

    Best regards,
    Mike

    #1421831
    This reply has been marked as private.
    #1421847

    Hi,
    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:
    Enfold_Support_3634.jpeg
    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:
    Enfold_Support_3636.jpeg
    and at larger screens 1440px:
    Enfold_Support_3638.jpeg
    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,
    Mike

    #1421866
    This reply has been marked as private.
    #1421972
    This reply has been marked as private.
    #1422007

    Hi,
    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,
    Mike

    #1422197
    This reply has been marked as private.
    #1422259

    Hi,
    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.
    Enfold_Support_3660.jpeg
    Enfold_Support_3662.jpeg

    Best regards,
    Mike

    #1422314
    This reply has been marked as private.
    #1422469

    Hi,
    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,
    Mike

    #1422473

    Mike 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.

    #1422479

    Hi,
    Glad to hear, once you are done testing please let us know so we close this thread.

    Best regards,
    Mike

    #1422558
    This reply has been marked as private.
    #1422560

    Hi,
    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,
    Mike

    #1422565

    GENIUS!

    Thank you Mike!!

    #1422566

    Hi,
    Glad that this helped, shall we close this thread then?

    Best regards,
    Mike

    #1422644

    Mike,

    I think so. All looks good now I believe!

    Thank you so much for your incredible assistance with this.

    All the best!
    James.

    #1422689

    Hi,
    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

Viewing 21 posts - 1 through 21 (of 21 total)
  • The topic ‘Duplicated Burger Icon and more padding to each nav item’ is closed to new replies.