-
AuthorPosts
-
April 15, 2022 at 2:40 pm #1348511
Hello,
I noticed the Search and close button overlaps when scrolling on menu on mobile devices. Is there any way to fix the position to not move and overlap with the pages? I’ve attached a video in private of this issue.
Thanks in advance.
KR
MApril 16, 2022 at 12:26 pm #1348542Hey babyboymik,
Thanks for the video. What dimensions does the device you are using have?
Best regards,
RikardApril 17, 2022 at 10:18 pm #1348643Hello Rikard,
I was using a Samsung s22 plus for that video and I also checked and had the same issue with an iphone 13 pro max on landscape mode…
BR,
MikeApril 17, 2022 at 10:48 pm #1348645Hi,
Please try this code in the General Styling ▸ Quick CSS field or in the WordPress ▸ Customize ▸ Additional CSS field:@media only screen and (max-width: 768px) and (orientation: landscape) { .responsive.av-burger-overlay-active-delayed #top #avia-menu.av-main-nav .menu-item-avia-special { right: -165px; } }
After applying the css, please clear your browser cache and check.
This css will move the Search and close button to the right when the mobile menu is open, the landscape width should be correct but feel free to increase it if you wish.Best regards,
MikeApril 18, 2022 at 12:13 am #1348654Hi again,
I’ve tried this code but doesn’t seem to work. I’ve also tried changing the px for the right and the max-width but nothing seems to change…
April 18, 2022 at 1:42 pm #1348688Hi,
It seems to be working when I check, please see the screenshot in the Private Content area.
Try clearing your browser cache and disable any caching plugins, if you are using Safari it can be hard to clear the cache, often you need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.Best regards,
MikeApril 18, 2022 at 5:16 pm #1348705Hi,
I’ve tried multiple times and not gotten that result :/
I’ve purged cache, cleared cache browser, and also deactivated cache plugin and still getting the same result.
I am using chrome on s22 plus. Maybe it plays a role on what device? Is your device different dimensions to which the code applies maybe? Maybe it’s the browser? Are you using safari?BR,
MApril 18, 2022 at 7:01 pm #1348712Hi,
Odd, the screenshot is from Chrome on Windows desktop with Dev Tools emulating a mobile device, and I also get this with my Galaxy A01 using Chrome.
Try checking your device screen resolution in portrait and landscape mode and post the dimensions so we can be sure of the media query of the css above.
Thanks.Best regards,
MikeApril 18, 2022 at 7:39 pm #1348713Hi again,
Strange. I still get the same.
My screen resolution in portrait mode is 412×892 and in landscape mode vice versa 892×412…
BR,
MikeApril 19, 2022 at 12:55 pm #1348788Hi,
Thank you for this, I see your landscape width is 892px, so we will try adding for this, please try this css instead:@media only screen and (max-width: 768px) and (orientation: landscape) { .responsive.av-burger-overlay-active-delayed #top #avia-menu.av-main-nav .menu-item-avia-special { right: -165px; } } @media only screen and (min-width: 769px) and (max-width: 895px) and (orientation: landscape) { .responsive.av-burger-overlay-active-delayed #top #avia-menu.av-main-nav .menu-item-avia-special { right: -165px; } }
I my test the right: -165px; seemed to be correct, but you can adjust if you need to, this will also give you the option to adjust for smaller and larger mobile devices, or if you wish you can just change to one rule:
@media only screen and (max-width: 895px) and (orientation: landscape) { .responsive.av-burger-overlay-active-delayed #top #avia-menu.av-main-nav .menu-item-avia-special { right: -165px; } }
After applying the css, please clear your browser cache and check.
Best regards,
MikeApril 19, 2022 at 5:43 pm #1348841Hey Mike
This works perfectly. Thanks a bunch! :)
BR,
MikeApril 20, 2022 at 12:13 pm #1348922Hi,
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 ‘Search and close button overlaps when scrolling on menu’ is closed to new replies.