Close

stick class

kava
6 years ago
#14504 Quote
Avatar
  • 17
Hi,
it's possible disable stick class on master-header-wrapper?

thanks
hristo
6 years ago
#14506 Quote
Avatar
  • Moderator
  • 172
kava wrote:
Hi,
it's possible disable stick class on master-header-wrapper?

thanks


Hello,
you need to edit your prisma.js file (Themes\Prisma\Content\scripts\).

Look for these two blocks of code:


stickyNavigation: {
                stickyElement: '.master-header-wrapper',
                stickyElementParent: '.master-header-wrapper-parent',
                showStickyOnFirstReverseScroll: false
            },


and


stickyNavigation: {
                stickyElement: '.master-header-wrapper',
                stickyElementParent: '.master-header-wrapper-parent',
                showStickyOnFirstReverseScroll: true
            },


The first block of code is applied on desktop device resolutions, and the second one is applied on mobile device resolutions. Delete the one you don't need, or both.

Make a local backup of your file first, in case anything goes wrong.
Regards,
Hristo Gospodinov
Nop-Templates.com
kava
6 years ago
#14509 Quote
Avatar
  • 17
perfect, thanks!