Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27193

    How do you control the amount the header/nav bar shrinks when scrolling down? I like the effect, but I’d prefer a little less shrinkage so users can still read the logo. Can you help? Maybe some Quick CSS perhaps?

    Thanks!

    #133120

    Open up wp-content/themes/enfold/js/avia.js and search for

    if(st < el_height/2)
    {
    newH = el_height - st;
    header.removeClass('header-scrolled');
    }
    else
    {
    newH = el_height/2;
    header.addClass('header-scrolled');
    }

    Replace 2 with a lower value like 1.5 or 1.2 and the menu height should increase accordingly. At the moment Kriesi shrinks the menu height to the half size because of the division by 2.

    #133121

    Again, thanks for the help!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Controling the size of shrinking header’ is closed to new replies.