• Hi there,

    I am using a sticky navigation which is hided when scrolling down (so here I need offset of 0px). However, when scrolling up again, the nav bar is faded in again (so here I would need offset of 70px). Is there any possibility to address this issue?

    Kind regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author malihu

    (@malihu)

    Hi,

    You might be able to do it using plugin’s offset expressions. Can you post your site/page URL so I can check it?

    Thread Starter finanzbeben

    (@finanzbeben)

    Hi there, yeah. Here you go: Girokonto-Vergleich | Finde das beste Girokonto (inzpyre.me).

    This page is a good example when using the anchor links from the toc to scroll back to top.

    Many thanks for your effort.

    Plugin Author malihu

    (@malihu)

    I checked it and offset expressions won’t work with the way your header menu works. The only thing that might work is perhaps using plugin’s auto-adjust scrolling option.

    First, add the following to your custom/additional CSS:

    .shiftnav--scroll-down .ubermenu-sticky.ubermenu .ubermenu-nav {
        height: 0;
    }

    Second, go to “Page scroll to id” settings and set the “Offset” option value to:

    .ubermenu-sticky.ubermenu .ubermenu-nav

    and enable/check “Verify target position and readjust scrolling (if necessary), after scrolling animation is complete” option.

    Save changes, test and let me know.

    Thread Starter finanzbeben

    (@finanzbeben)

    Thanks for trying to help. I have just inputted your snippets and settings. However, this seems to not work. Any further idea? Otherwise I guess I need to live with it.

    Plugin Author malihu

    (@malihu)

    OK try another approach:

    Remove the previous CSS:

    .shiftnav--scroll-down .ubermenu-sticky.ubermenu .ubermenu-nav {
        height: 0;
    }

    and add a new one:

    .shiftnav--scroll-up ._mPS2id-t{
    	margin-top: -55px;
        padding-top: 55px;
    }

    Leave the other settings as they are.

    Thread Starter finanzbeben

    (@finanzbeben)

    I have just exchanged the CSS snippet. However, now the problem is that there is a huge gap in both directions. Maybe you can try in private mode urself. BTW: Shiftnav should only be used in mobile mode, not desktop.

    Plugin Author malihu

    (@malihu)

    I can’t really see any huge gap. You can lower the pixels, e.g.:

    .shiftnav--scroll-up ._mPS2id-t{
    	margin-top: -25px;
        padding-top: 25px;
    }

    The Shiftnav classes in your theme are in both desktop and mobile. Will this change?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Offset pixels only when scrolling back to top?’ is closed to new replies.