Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve removed the lines below from the jquery.smint.js, making my home header always fixed, and made the top margin of the .section-banner equal to .home-header height in css. Solved my scroll prob.

    // if we scroll more than the navigation, change its position to fixed and add class ‘fxd’, otherwise change it back to absolute and remove the class
    if (scrollTop > stickyTop) {
    $(‘.smint’).parents(“.home-header”).css({ ‘position’: ‘fixed’ }).addClass(‘fxd’);
    } else {
    $(‘.smint’).parents(“.home-header”).css({ ‘position’: ‘relative’}).removeClass(‘fxd’);
    }
    if(stickyTop>$(‘.smint’).height()){
    $(‘.smint’).parents(“.home-header”).css({ ‘position’: ‘fixed’ }).addClass(‘fxd’);
    }

    Have the same issue with scrolling here, will try to figure it out in the next couple of days.

    *it’s a variation of the SMINT jQuery plugin
    I guess the solution somewhere in the wp-content/themes/onetone/js/jquery.smint.js

Viewing 2 replies - 1 through 2 (of 2 total)