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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RayYates
    Developer Partner



    • Dec 2006
    • 1517

    #1

    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
  • Brennan
    Super Moderator









    • Jun 2009
    • 3481

    #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

    • RayYates
      Developer Partner



      • Dec 2006
      • 1517

      #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