Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1274290
    Gnomo Bàgnolo
    Participant

    Hi

    I’ve checked “Fixed Top” option on Header Navbar Position:
    Why this option works only for DESKTOP and it doesn’t works for MOBILE?

    Thank You

    #1274294
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding.

    #1274314
    Gnomo Bàgnolo
    Participant

    Is it possible with some of your additional Plugins/Extensions (like Ubermenu or Superfly)?

    #1274320
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> Global CSS :

    @media (max-width: 979px){
    .x-navbar-fixed-top, .x-navbar-fixed-left, .x-navbar-fixed-right {
        position: fixed;
    }
    }

    Hope that helps.

    #1274343
    Gnomo Bàgnolo
    Participant

    Thank You

    I added also:

    .x-btn-widgetbar {
    position: fixed;
    }
    
    @media (max-width: 979px) {
    .x-widgetbar {
    position: fixed;
    }
    }

    in order to FIX on top also Header Widget and Button.

    Is it OK?

    #1274364
    Christopher
    Moderator

    Hi there,

    Please add this code :

    @media (max-width: 979px) {
    .x-btn-widgetbar,.x-widgetbar { 
    {
        position: fixed;
    }
    }

    Thanks.

    #1308557
    Gnomo Bàgnolo
    Participant

    Hi

    Fixed Top on Mobile works fine, BUT I have an issue with Breadcrumbs

    Breadcrumbs is visible on page load

    Breadcrumbs becomes invisible (hidden behind Navbar) after scroll

    Do you have any suggestion?

    Thank You

    #1308644
    Rupok
    Member

    Hi there,

    Thanks for writing back. That sounds unusual and we need to check your site. Kindly provide your site URL.

    Cheers!

    #1308837
    Gnomo Bàgnolo
    Participant

    Thanks

    http://www.ilsentierodeglignomi.it

    Try pages (with Breadcrumbs) different from homepage

    Thank You

    #1309400
    Rad
    Moderator

    Hi there,

    Hmm, it seems to be working. Breadcrumbs are supposed to be covered by navbar when you scrolled it since navbar is fixed positioned. Or are you trying to move your breadcrumb as navbar moves too?

    Thanks!

    #1309599
    Gnomo Bàgnolo
    Participant

    Thank you

    I try to explain better with an example

    ON MOBILE DEVICES If you go to page
    http://www.ilsentierodeglignomi.it/blog/
    You can try

    1) on OPEN everything works fine

    2) on FIRST SCROLL DOWN everything works fine (Breadcrumbs is covered by Navbar)

    3) if now you SCROLL UP to the Top of the page, Breadcrumbs remain covered by Navbar; I’d like to come back to beginning situation like 1st point

    Thank you

    #1309681
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To resolve this issue, please add the following JS code in the customizer, Appearance > Customize > Custom > Javascript

    // Fixed Top Navbar
    // =============================================================================
    
    jQuery(function($) {
    
      var $body   = $('body');
      var $navbar = $('.x-navbar');
    
      if ( $body.hasClass('x-navbar-fixed-top-active') && $navbar.length > 0 ) {
    
        var boxedClasses = '';
    
        if ( $body.hasClass('x-boxed-layout-active') ) {
          boxedClasses = ' x-container max width';
        }
    
        $(window).scroll(function() {
    
          if ( $(this).scrollTop() >= 55 ) {
            $navbar.addClass('x-navbar-fixed-top' + boxedClasses);
          } else {
            $navbar.removeClass('x-navbar-fixed-top' + boxedClasses);
          }
    
        });
    
      }
    
    });

    We would loved to know if this has work for you. Thank you.

    #1309779
    Gnomo Bàgnolo
    Participant

    Thanks!

    It works perfectly!

    Great Support!
    Best Support!

    #1309842
    Rue Nel
    Moderator

    You’re welcome! We’re happy to help you out.
    If you need anything else we can help you with, don’t hesitate to open another thread.

    Happy New Year!

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