Announcement

Collapse
No announcement yet.

Disable the Fixed position header (class=stuck) on some pages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Disable the Fixed position header (class=stuck) on some pages

    As you scroll down the page the Suivant header pops down and becomes fixed at the top of the page.

    This is accomplished by adding the class "stuck" to the header div tag.

    I want to disable that on certain pages. Before I go digging into the JavaScript, does anyone know how to do that?
    Ray Yates
    "If I have seen further, it is by standing on the shoulders of giants."
    --- Sir Isaac Newton

    #2
    Re: Disable the Fixed position header (class=stuck) on some pages

    in /js/scripts.js you can remove/comment out this code:

    Code:
    // ---- On scroll, fix the header to the top ---- //
    if (document.location.protocol !== 'https:' && $(window).innerWidth() > 768) {
    	$('#js-header').stuck();
    };
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Disable the Fixed position header (class=stuck) on some pages

      Thanks BH
      Ray Yates
      "If I have seen further, it is by standing on the shoulders of giants."
      --- Sir Isaac Newton

      Comment

      Working...
      X