Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1003918

    Hello team Kriesi. So, yesterday I took a code and put it inside “Custom CSS”, for making my “Sticky Right Sidebar Menu” to remain sticky. The code is this:

    .html_header_sidebar #top #header.av_always_sticky {
        right: 0;
    }
    .html_header_left #main {
        margin-left: auto;
    }
    
    .html_header_sidebar #header .av-main-nav {
        text-align: left;
    }
    
    .html_header_sidebar #top #header {
        position:fixed!important;
        width: 475px;
        position: absolute;
        min-height: 100%;
        border-bottom: none;
    }
    

    But now, the responsive mobile menu is staying sticky as well. And it covers some of my content. Can someone help me with a code to make the responsive menu to not cover my page content? Thanks in advance

    • This topic was modified 6 years, 3 months ago by Zetrh.
    #1003924

    Hey Zetrh,
    Please try changing your code to this:

    @media only screen and (min-width: 768px) { 
    .html_header_sidebar #top #header.av_always_sticky {
        right: 0;
    }
    .html_header_left #main {
        margin-left: auto;
    }
    
    .html_header_sidebar #header .av-main-nav {
        text-align: left;
    }
    
    .html_header_sidebar #top #header {
        position:fixed!important;
        width: 475px;
        position: absolute;
        min-height: 100%;
        border-bottom: none;
    }
    }

    Best regards,
    Mike

    #1003928

    Hey Mike, Thanks for the reply. The code I gaved you on my first post, it made my right sidebar menu, on the laptop/monitor devices stay sticky, as I wanted from the start. But instead, it made my mobile menu go nuts and cover my page elements, while is sticky. I don’t want that. I want that mobile menu to be normal. The code you gaved me, it makes mobile menu normal, but instead makes the right sidebar menu on the laptop/monitor devices return as they initial where: not sticky. :(

    #1004253

    Hi,
    Ok, I will try again. But right, from the link above, now I’m only getting a landing page with a overlay menu instead of the flyout menu.

    Best regards,
    Mike

    #1004256

    Hey, Mike – Thanks for the answer.
    I will give you a link where to look, although the mobile menu is sticky on every page. Please remember that the website is in ongoing creation so the pages changes from time to time. All but the shop page, which I will give link in the private content.
    *My problem is with the mobile menu bar that stays sticky and cover part of my page content. Now, with the left sidebar on sticky, from the Enfold Theme Options -> Logo and Main Menu, that dose not happen. Only with the right sidebar on and the code I gaved you above.
    Thanks again for the answer and for your time.

    #1004310

    Hi,
    Please try removing your code above and use this code instead:

    @media only screen and (min-width: 768px) { 
    .html_header_sidebar #top #header.av_never_sticky {
        position: fixed!important;
    }
    }

    If this doesn’t help, please leave your code removed so I can test without it.

    Best regards,
    Mike

    #1004324

    Unfortunately it didn’t worked. :( I removed all the code. It’s all yours

    • This reply was modified 6 years, 3 months ago by Zetrh.
    #1004330

    Hi,
    Thank you for removing it. When testing this code:

    @media only screen and (min-width: 768px) { 
    .html_header_sidebar #top #header.av_never_sticky {
        position: fixed!important;
    }
    }

    the mobile menu is not sticky, and at tablet and above the sidebar menu is sticky.
    Perhaps when you tested it you needed to clear your cache, or there is an error in your css.
    If you include a admin login we could take a look.

    Also with this code your logo shows on the mobile menu, did you want that?

    Best regards,
    Mike

    #1004332

    Hey Mike, sure thing. I will leave all the credentials in privatate content and I’ve added all the code back

    ps. sure, if the logo shows without any intrude to the menu, of course. But mainly, what i need is that the right side bar menu to remain sticky on the monitor devices, while on mobile the menu stays as ussual

    • This reply was modified 6 years, 3 months ago by Zetrh.
    #1004344

    Hi,
    Thanks, the issue was your string of dashs in your css, I commented it out like this

    /*--------*/

    and now the code I added works, Please clear your browser cache and check.

    Best regards,
    Mike

    #1004352

    Perfectly and smooth. Thanks a lot for your help. I’m a noob in coding and things like this but i try to learn. :D thanks again for your help and time

    #1004357

    Hi,
    Glad we could help, unless there is anything else we can help with on this issue, shall we close this then?

    Best regards,
    Mike

    #1004358

    nothing else. you can close the thread and thank you again :D

    #1004363

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘"Responsive Mbile Menu" – is sticky’ is closed to new replies.