Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #991113
    yovo_cgn
    Participant

    Hi,
    whe i use the one page navigation in full screen
    the links jump to the right places.

    Ob smaler screen or mobile device it jumps to a place 20px higher than intended.
    Any idea what we are doing wrong?

    Kind regards

    #991114
    yovo_cgn
    Participant
    This reply has been marked as private.
    #991147
    Nabeel A
    Moderator

    Hi again,

    Thanks for writing in! First add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:

    .x-brand {
        margin-top: 0 !important;
    }

    Instead of giving inner content ID’s you should replace it with section’s ID for example instead of using #contact use x-section-7

    Let us know how this goes!

    #991215
    yovo_cgn
    Participant

    Hi,
    i changed it to section ids
    and inserted the code above.
    Didn´t work.

    Now it doesn´t work in fullscreen mode as well

    Kind Regards

    #991600
    Rad
    Moderator

    Hi there,

    Please add this code to Admin > Appearance > Customizer > Custom > Javascript

    jQuery ( function( $ ) {
    
    $(document).ready ( function() {
    
    setTimeout ( function() {
    
    $('.x-navbar .mobile .x-nav li>a').off('touchend touchstart click').on('click', function( e ) {
    
    e.preventDefault();
    
    $('html, body').stop().animate({scrollTop: $('#'+$(this).attr('href').split("#").slice(-1)[0]).offset().top },700 ,'swing');
    
    } );
    
    }, 100 );
    
    } );
    
    } );

    That should reset the offset positioning to zero. Hope this helps 🙂

    #991861
    yovo_cgn
    Participant

    Hi,
    this helped with the mobile view (mobile menue)
    it is 99% perfect – thx a lot!

    The code does not affect the fullscreen navigation
    Meaning when there is the normal navigation, there is still an offset of about 20px on scrolling down.
    – Best to see at “about us” or “Testimonials”

    Kind Regards

    #991989
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! Please try to increase the navbar top height in your customizer, Appearance > Customize > Header > Navbar and set the “Navbar Top Height” at least 138 pixels.

    Hope this helps.

    #992140
    yovo_cgn
    Participant

    THX!
    That did the trick,

    Great support as always.
    Kind Regards

    #992168
    Thai
    Moderator

    You’re most welcome 🙂

    If you need anything else please let us know.

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