-
AuthorPosts
-
April 17, 2023 at 6:45 pm #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; } }
April 18, 2023 at 6:40 am #1404776Hey 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,
IsmaelMay 22, 2023 at 6:24 pm #1408173Hi, 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%); }
May 23, 2023 at 5:36 am #1408222Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.