Menu icon Foundation
Sticky top bar with header above

I have a large header with a sticky bar underneath. The code is working fine when i scroll. But now the navbar also jumps to the top when the header is still visible.. (it jumps above the header..). i want it to stay in place unless it is sticked by scrolling..

any idea's? / tips..

btw i use wordpress with foundation

thnx!

navbarstickyScrollTopmenuwordpress

I have a large header with a sticky bar underneath. The code is working fine when i scroll. But now the navbar also jumps to the top when the header is still visible.. (it jumps above the header..). i want it to stay in place unless it is sticked by scrolling..

any idea's? / tips..

btw i use wordpress with foundation

thnx!

Rafi Benkual over 4 years ago

There is an option to not do this using the sticky plugin. scrolltop : false

<nav class="top-bar" data-topbar role="navigation" data-options="scrolltop : false">

Rafi Benkual over 4 years ago

Can't replicate this. Can you share a link or the code so we can help more?