Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #983000
    Desmond T
    Participant

    I need help figuring out how to make the topbar fixed on the website along with the navbar, and how to make the logo display across both the nav bar and logo bar on the left side of the screen, similar to http://www.frsport.com/

    http://virtuemotorsports.com/

    Here is what I have in my CSS:

    .x-topbar {
      height: 30px;
      min-height: 0;
      text-align: right;
    }
    
    .x-topbar-inner.x-container.max.width,
    .x-logobar-inner>div,
    .x-navbar-inner>div {
        width: 100% !important; /*Current value is 88%(your current site width in customizer)*/
        max-width: 1920px !important; /*Current value is 1000px(your current site max width)*/
    }
    
    .x-logobar {
    text-align: left;
    }
    
    .x-topbar-inner.x-container.max.width {
        height: 30px;
        overflow: hidden;
    }
    
    
    #983031
    Desmond T
    Participant

    I deleted that CSS for now, until i get this other issue fixed

    #983035
    Desmond T
    Participant

    I followed this post and got the topbar docked with the navbar, but now i need the logo to overlap into the topbar

    https://community.theme.co/forums/topic/make-topbar-fixed-with-navbar/#post-94848

    #983393
    John Ezra
    Member

    Hi there,

    Thanks for writing in! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.

    a.x-brand.img {
        position: absolute;
        z-index: 9;
        top: 40px;
    }
    
    .x-navbar-inner {
        height: 65px;
    }

    Hope this helps – thanks!

    #984114
    Desmond T
    Participant

    Do I need all of this CSS?

    .x-topbar {
      height: 30px;
      min-height: 0;
      text-align: right;
    }
    
    .x-topbar {
       z-index:1;
    }
    
    .x-brand img {
        margin-top: -40px;
    }
    
    a.x-brand.img {
        position: absolute;
        z-index: 9;
        top: 40px;
    }
    
    .x-navbar-inner {
        height: 65px;
    }
    #984335
    Nabeel A
    Moderator

    Hi again,

    You can replace the above CSS with suggested Code.

    Let us know how this goes!

    #984656
    Desmond T
    Participant

    Just replaceing the code does not work correctly. YOu can see what i mean on the website.

    #984843
    Desmond T
    Participant

    Can someone explain to me the point of putting this code in seperately rather than just under .x-brand img?

    a.x-brand.img {
        position: absolute;
        z-index: 9;
        top: 40px;
    #985272
    Nabeel A
    Moderator

    Hi again,

    I’m not sure what you mean? Can you please explain it bit more? If it’s not working correctly then you can keep all of your CSS.

    Thanks!

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