Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1347588
    micody
    Participant

    Hello,

    I am trying to make the top bar, as well as the menu bar remain static on scroll on my Renew theme site. The header with logo does not need to ‘stick’.

    I have come across a few similar questions, but none of the solutions work quite right on my site.

    Thanks for your help!

    Latest versions of WP / X / CS

    #1347589
    micody
    Participant
    This reply has been marked as private.
    #1347615
    Paul R
    Moderator

    Hi,

    To achieve that, you can add this under Custom > CSS in the Customizer.

    
    .x-topbar {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #F0F0F0;
    }
    
    .x-logobar {
        margin-top:46px;
    }
    
    .x-navbar.x-navbar-fixed-top {
        top:46px;
    }
    

    Hope that helps.

    #1347770
    micody
    Participant

    Perfect! Thank you!

    #1347822
    Rahul
    Moderator

    You’re most welcome!

    Feel free to ask us again.

    #1397881
    micody
    Participant

    This worked perfectly but now I have added a second line to the top bar (i.e. added social media icons), the mobile version of the top bar / logo bar needs adjusting. Can you help?

    Thanks

    #1398084
    Nabeel A
    Moderator

    Hi again,

    I checked your site and your topbar looks good in smaller screens, can you please provide us with a little more clarification on what it is you’re wanting to do (perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thanks!

    #1398854
    micody
    Participant
    This reply has been marked as private.
    #1398858
    micody
    Participant
    This reply has been marked as private.
    #1399020
    Paul R
    Moderator

    Hi,

    You can add this under Custom > Edit Global CSS in the Customizer.

    
    @media (max-width: 767px) {
    body .x-logobar {
        margin-top: 79px;
    }
    }
    

    Hope that helps.

    #1401714
    micody
    Participant

    Great, thanks! 🙂

    #1401795
    Paul R
    Moderator

    You’re welcome! 🙂

  • <script> jQuery(function($){ $("#no-reply-1347588 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>