Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1404729

    How would I make About and Services the same distance from the logo as Contact and Booking? Currently The left menu items are further from the logo.

     /*------------------------*/
    /* CSS - Logo center split menu
    /*------------------------*/
    
    @media only screen and (min-width: 780px) {
    /*In the below code nth-child(x) the value of x should be half the number of total menu items*/
    #top #header .av-main-nav li:nth-child(2) {
      /* Adjust the width of the logo */
        margin-right:150px;
    }
    
    #header .main_menu {
        /*background: gold;*/
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .av-main-nav-wrap {
        left: 50%;
        transform: translateX(-50%);
    }
    
    #header .logo {
        left: 50%;
        transform: translateX(-50%);
        z-index:999;
    }
    
    #header .logo img {    
        top: 50%;
        transform: translateY(-50%);
        max-width: 310px;  
    }
    }
    
    @media only screen and (min-width: 780px) {
      .logo, .logo a {
        height: 230px;
      }
    
      #top #header .av-main-nav li:nth-child(2) {
        margin-right: 270px;
      }
    
      #top #header span.logo {
        position: absolute;
        bottom: -70px;
      }
    }
    #1404776

    Hey goldieslongbeach,

    Thank you for the inquiry.

    You can adjust the position or alignment of the actual menu container by adding this code in the Quick CSS field.

    #top #header .av-main-nav-wrap {
        transform: translateX(-47%);
    }
    

    Please make sure toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the modification.

    Best regards,
    Ismael

    #1408173

    Hi, so this code works great on desktop. On mobile though the code makes it so the mobile menu does not work. I opened a new thread here with the issue. I did grant admin access via the temp login plugin on that thread.

    Here is my code:

     /*------------------------*/
    /* CSS - Logo center split menu
    /*------------------------*/
    
    @media only screen and (min-width: 780px) {
    /*In the below code nth-child(x) the value of x should be half the number of total menu items*/
    #top #header .av-main-nav li:nth-child(2) {
      /* Adjust the width of the logo */
        margin-right:150px;
    }
    
    #header .main_menu {
        /*background: gold;*/
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .av-main-nav-wrap {
        left: 50%;
        transform: translateX(-50%);
    }
    
    #header .logo {
        left: 50%;
        transform: translateX(-50%);
        z-index:999;
    }
    
    #header .logo img {    
        top: 50%;
        transform: translateY(-50%);
        max-width: 310px;  
    }
    }
    
    @media only screen and (min-width: 780px) {
      .logo, .logo a {
        height: 230px;
      }
    
      #top #header .av-main-nav li:nth-child(2) {
        margin-right: 270px;
      }
    
      #top #header span.logo {
        position: absolute;
        bottom: -70px;
      }
    }
    
    #top #header .av-main-nav-wrap {
        transform: translateX(-47%);
    }
    #1408222

    Hi,

    Thank you for the update.

    We wrapped the above modification in a css media query so that it only affects the desktop view. We also deactivated the Enfold > Performance > File Compression settings temporarily. The mobile menu seems to be working correctly now.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.