Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1038912
    Gnosis123
    Participant

    on pages with breadcrumb wrapper the navbar box shadow vanishes on scroll.

    I’ve tried various z-indexing both navbar + and breadcrum – but to no avail.

    tried applying box shadow to .masthead as in other post but didn’t work. Lowering the breadcrumb leaves a gap.

    #1038913
    Gnosis123
    Participant
    This reply has been marked as private.
    #1038919
    Gnosis123
    Participant
    This reply has been marked as private.
    #1039114
    Rue Nel
    Moderator

    Hello There,

    After investigating the issue, it seems that this block of js code is causing an error. Could you please comment out this block:

    jQuery(function ($){
      $( '.topbar-menu li:has(ul)' ).doubleTapToGo();
    });

    Please let us know so we can test again.

    #1039171
    Gnosis123
    Participant

    I’ve commented it out but its still happening.

    #1039203
    Rue Nel
    Moderator

    Hello There,

    Now that there are no longer any JS error on the page, please add the following JS code in the customizer, Appearance > Customize > Custom > Javascript

    jQuery(function($) {
    
      var $body   = $('body');
      var $navbar = $('.x-navbar');
    
      if ( $body.hasClass('x-navbar-fixed-top-active') && $navbar.length > 0 ) {
    
        $(window).scroll(function() {
    
          if ( $(this).scrollTop() >= 130 ) {
            $navbar.addClass('x-navbar-fixed-top');
          } else {
            $navbar.removeClass('x-navbar-fixed-top');
          }
    
        });
    
      }
    
    });

    Please let us know how it goes.

    #1039284
    Gnosis123
    Participant

    Brilliant! Works like a charm!

    Many Thanks Rue

    #1039410
    Paul R
    Moderator

    You’re welcome! 🙂

    #1040482
    Gnosis123
    Participant
    This reply has been marked as private.
    #1040613
    Gnosis123
    Participant

    Don’t worry. I’ll cut the jquery and add a top shadow inset to the breadcrumb wrap. Thanks for your help!

    #1040980
    Paul R
    Moderator

    You’re welcome! 🙂

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