Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1234851
    Joao
    Moderator

    Hi There,

    Unfortunely Not

    Still the same error.

    Would you mind pasting your whole CSS code you have in Appereance > Customizer > Custom > CSS so we can review?

    Thanks

    Joao

    #1234869
    Marco
    Participant

    See screenshots. May be we should use some javascript?

    #1234873
    Marco
    Participant
    This reply has been marked as private.
    #1235500
    Rue Nel
    Moderator

    Hello There,

    This block applies to the whole navbar:

    .x-btn-navbar.collapsed:hover,
    .x-btn-navbar:hover,
    .x-btn-navbar.collapsed,
    .x-btn-navbar {
      color: #fff;
      text-shadow: none;
    }

    And this block only affects the fixed navbar;

    .x-navbar-fixed-top .x-btn-navbar.collapsed:hover,
    .x-navbar-fixed-top .x-btn-navbar:hover,
    .x-navbar-fixed-top .x-btn-navbar.collapsed,
    .x-navbar-fixed-top .x-btn-navbar {
      color: gray;
      text-shadow: none;
    }

    Feel free to change the color that may apply to your site colors.

    Hope this helps.

    #1236662
    Marco
    Participant

    It took 5 support-pages but we have a winner!
    Thx Rue Nel for your solution and thx X-theme for the support!

    Greets Marco!

    #1236969
    Rad
    Moderator

    Glad to hear that! Cheers!

    #1277226
    Marco
    Participant

    Hi, One more question.

    I want to delay the fixed-header on scroll. See for example this site: https://www.airbnb.nl
    Is that possible?

    Thx! Grtz Marco

    #1277314
    Paul R
    Moderator

    Hi,

    To achieve that you need to set your navbar layout to static top.

    http://screencast.com/t/ee0likLzT

    Then add this in Custom > Edit Global Javascript in the customizer.

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

    You may change 200 to adjust how far down to scroll until your navbar is fixed.

    Hope that helps.

    #1277398
    Marco
    Participant

    Thx for the code!

    #1277410
    Joao
    Moderator

    You are welcome 🙂

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