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

    #1348542

    Hey babyboymik,

    Thanks for the video. What dimensions does the device you are using have?

    Best regards,
    Rikard

    #1348643

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

    #1348645

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

    #1348654

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

    #1348688

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

    #1348705

    Hi,

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

    #1348712

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

    #1348713

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

    #1348788

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

    #1348841

    Hey Mike

    This works perfectly. Thanks a bunch! :)

    BR,
    Mike

    #1348922

    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 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Search and close button overlaps when scrolling on menu’ is closed to new replies.