Tagged: mobile header, mobile logo, sticky menu mobile
-
AuthorPosts
-
September 19, 2023 at 2:52 pm #1419585
hi
I’d like to have my logo centered on mobile, with the burger menu on the right.
I tried various codes from threads here but the logo was centering between the left edge and the burger menu and not edge to edge and my anchor menu links were landing too high (under the header). My header is 80px high.can you help me with this?
thanks
NancySeptember 20, 2023 at 5:27 am #1419639Hey Munford,
Thank you for the inquiry.
The site seems to be on maintenance mode. We may need to login in order to properly check the issue. Please provide the login details in the private field.
Best regards,
IsmaelSeptember 20, 2023 at 10:30 am #1419683I took the css that I was using off, so there is no code now centering the logo on mobile.
That’s what I need from you.
login below
thanksSeptember 21, 2023 at 2:05 am #1419801Hi Munford,
I tried to login using the credentials you gave however it returns this error:
Error: The username is not registered on this site. If you are unsure of your username, try your email address instead.
Please check.
Best regards,
NikkoSeptember 21, 2023 at 11:22 am #1419871sorry the correct login is below
September 22, 2023 at 4:30 am #1419974Hi Munford,
Thanks for that, please try to add this CSS code in Enfold > General Styling > Quick CSS:
@media only screen and (max-width:767px) { .responsive #top .logo { width: 100%; } .responsive #top .logo img { margin-left: auto; margin-right: auto; } #top #av-burger-menu-ul { vertical-align: top; } }
Let us know if it helps.
Best regards,
NikkoSeptember 22, 2023 at 9:27 am #1420002thanks that worked to center the logo.
Is it possible to make it sticky as well?- This reply was modified 1 year, 3 months ago by Munford.
September 23, 2023 at 3:14 pm #1420118Hi Munford,
Sure, please replace the code I previously gave with this one:
@media only screen and (max-width:767px) { .responsive #top .logo { width: 100%; } .responsive #top .logo img { margin-left: auto; margin-right: auto; } #top #av-burger-menu-ul { vertical-align: top; } .responsive #top #wrap_all #header { position: fixed; } .responsive #top #wrap_all #main { padding-top: 80px !important; } }
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.