Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #383031

    Solomon
    Participant

    Hi,

    I seem to be having a similar problem, my navbar covers up the top section of my page when I check responsiveness for smaller devices (by shrinking window to a smaller size). I tried the codes you give above but none of them fully fix the issue. Do you have any advice?

    My website: http://selfknowledgemanagement.org

    Many thanks!

    #383036

    Thai
    Moderator

    Hi @solomon,

    Try adding following CSS under Appearance > Customize > Custom > CSS:

    @media (max-width: 979px){
        .x-main {
            padding-top: 201px;
        }
    }

    Hope it helps.

    #383049

    Solomon
    Participant

    Hi, thanks for your swift reply! That code does help with the shrinking, but I realised that even when I am on my laptop (13″) the top section of my page is cut off… Can this be fixed?

    #383067

    Christopher
    Moderator

    Hi there,

    Please add this :

    
    body.x-navbar-fixed-top-active .x-navbar-wrap {
        height: auto;
        min-height: 150px;
    }

    Hope it helps.

    #383080

    Solomon
    Participant

    Hi, unfortunately not quite, the top is still cut off and when I decrease window size there’s a huge gap between top section and navbar…

    #383108

    Paul R
    Moderator

    Hi,

    Please remove the code in your custom css that reads

    
    @media (max-width: 979px){
        .x-main {
            padding-top: 201px;
        }
    }
    

    and

    
    body.x-navbar-fixed-top-active .x-navbar-wrap {
        height: auto;
        min-height: 150px;
    }
    

    Then add this code instead.

    
    body header.masthead {
        min-height:201px;
    }
    

    Hope that helps.

    #383185

    Solomon
    Participant

    Hi, yes, that worked, thank you! (When I look at my site while logged into WordPress, the alignments still have issues, but once logged out it looks fine.)

    Thanks for your great support once again!

    #383239

    Thai
    Moderator

    You’re most welcome 🙂

    #802588

    photomeblack
    Participant

    The code in reply #277539 also works nicely, when scrolling back up on a mobile phone, while keeping the navbar above LayerSlider. Thank you!

    #803003

    Paul R
    Moderator

    You’re welcome! 🙂