Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1327204
    Christian_W
    Participant

    Hello,

    my website domain is http://www.peru-video.de. I’m using WordPress 4.7 and the latest version of the x theme.
    I have a question about the configuration of the menue. How is it possible that the menue shrinks when the user scrolls down and how can I display my logo above the main menue like on this website: http://www.harscher.de/start/

    Another question. How can I remove the +-Button in the right corner of my website? I have adjusted you an secreenshot.

    Thanks a lot for your help.

    Best regards

    Christian

    #1327355
    Rupok
    Member

    Hi Christian,

    Thanks for writing in! It’s possible with some custom code. You can follow this thread – https://community.theme.co/forums/topic/shrink-sticky-header-logo-upon-scrolling/

    And you need to set “Stacked Navbar” instead of Inline from Customzie > Header to get the logo like the mentioned site. Let’s do that and update us if you still need help.

    Cheers!

    #1331643
    Christian_W
    Participant

    Hello,

    I’ve tried to add this code, but it didn’t work. I hope you can help me.

    .x-navbar-fixed-top .x-brand img {
    max-width: 110px;
    width: 110px;
    }
    .x-navbar-fixed-top .desktop .x-nav > li > a {
    height: 35px;
    padding-top: 40px;
    }
    .x-navbar-fixed-top .x-navbar-inner {
    min-height: 95px;
    }

    Best regards.
    Christian

    #1331657
    Christopher
    Moderator

    Hi there,

    Your site is under construction mode, please provide us with login credentials.

    Thanks.

    #1331693
    Christian_W
    Participant
    This reply has been marked as private.
    #1331762
    Paul R
    Moderator

    Hi Mario,

    To achieve that, add this in Custom > Edit Global Javascript in the Custommizer

    
    jQuery(function($) {
     
      
        $(window).scroll(function() {
    
          if ( $(this).scrollTop() > 0 ) {         
            $('.x-logobar').addClass('x-logobar-fixed-top');
          } else {
            $('.x-logobar').removeClass('x-logobar-fixed-top');
          }
          
          if ( $(this).scrollTop() == 0 ) {
               $('.x-navbar').removeClass('x-navbar-fixed-top');
          }
        });
     
    });
    

    Then add this in Custom > Edit Global CSS

    
    .x-logobar {
        transition: all 0.5s ease-in-out;
    
    }
    
    .x-logobar.x-logobar-fixed-top .x-logobar-inner {
       padding:0;
    }
    
    .x-logobar.x-logobar-fixed-top {
        position:fixed;
        top:0;
        width:100%;
      z-index:9999;
    }
    
    .x-navbar.x-navbar-fixed-top {
        top:60px;
      transition:all 0.1 ease-in-out;
    }
    
    .x-brand img  {
        width: 200px;
       transition: all 0.5s ease-in-out;
    }
    
    .x-logobar.x-logobar-fixed-top .x-brand img  {
        width:100px;
    }
    
    .x-navbar {
      top:150px;
    position:fixed;
    width:100%;
       transition: all 0.1s ease-in-out;  
    }
    .masthead {
      background:#fff;
    }
    

    Hope that helps

    #1331796
    Christian_W
    Participant

    It worked – thank’s a lot. Very good support.

    Best reagrds

    Christian

    #1331827
    Thai
    Moderator

    You’re most welcome 🙂

    If you need anything else please let us know.

    #1337997
    Christian_W
    Participant

    Hello, as I said everthing went finde. But sometimes I have the problem, that by scrolling down you can see the revolution slider image in the menue. Adjust you’ll find a screenshot. Do you know what the problem is or how to solve the problem?

    Best regards.

    Christian

    #1338159
    Paul R
    Moderator

    Hi,

    I went ahead and made some adjustment to the code to fix it.

    Kindly check on your end.

    Thanks

    #1341114
    Christian_W
    Participant

    Hello,

    thanks a lot for your help. A really great support. It worked but again I have the same Problem. I adjusted you a screenshot. I hope you can help me.

    Best regards

    Mario

    #1341126
    Thai
    Moderator

    Hi Mario,

    It should be fine now.

    Please check again.

    Cheers!

    #1341151
    Christian_W
    Participant

    Everything finde now – great! Thanks a lot.

    Best regards

    #1341178
    Lely
    Moderator

    You’re welcome!
    Cheers!

    #1363924
    Christian_W
    Participant

    Hello,

    again I have the same problem. Everytime I change something in the header like navbar top height or the logo this error appears again.

    Adjust a screenshot.

    I hope you can help me.

    Bet regards

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