Close

stick class

kava
one year ago
#14504 Quote
Avatar
  • 16
Hi,
it's possible disable stick class on master-header-wrapper?

thanks
hristo
one year ago
#14506 Quote
Avatar
  • Moderator
  • 119
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
one year ago
#14509 Quote
Avatar
  • 16
perfect, thanks!