Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1205333
    Suzanne S
    Participant

    Hi,

    I need to fix my topbar to my header. I have tried some of the code you have provided for others but they don’t work. I need the topbar fixed to the navbar/header without covering the content.

    My url is http://www.howtostartworkingathome.com

    thank you

    Suzanne

    #1205485
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    Please add this Code under Custom > CSS in the Customizer.

    .x-topbar {
      position: fixed;
      width: 100%;
    }
    
    .x-navbar, .x-navbar-fixed-top {
      top: 46px !important;
    }

    Hope this helps!

    Let us know how it goes!

    #1206349
    Suzanne S
    Participant

    that covers the beige title band?

    #1206367
    Rupok
    Member

    Hi there,

    Kindly add this code as well :

    .x-main.full {
      margin-top: 46px;
    }

    Hope this helps.

    #1206680
    Suzanne S
    Participant

    it still doesn’t work, when you scroll the header moves up under the topbar?

    #1207222
    Nabeel A
    Moderator

    Hi again,

    Please replace the previous code with this one:

    header.masthead.masthead-inline {
        position: fixed !important;
        display: block !important;
        width: 100% !important;
        z-index: 999 !important;
    }
    .x-main.full {
        margin-top: 166px !important;
    }

    Let us know how this goes!

    #1208496
    Suzanne S
    Participant

    Brilliant…that worked perfectly.

    thank you 🙂

    #1208587
    Rad
    Moderator

    You’re so much welcome!

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