Welcome at momizat support forums.

Home Forums Multinews css class for stcikymenu ul li ? Reply To: css class for stcikymenu ul li ?

  • tibewww replied

    Hi,

    I foudn those line in the js/main.js


    //Sticky navigation
    if ($('body').hasClass('sticky_navigation_on')) {
    var aboveHeight = $('#header-wrapper').outerHeight();
    var sl = $('#navigation').data('sticky_logo');
    var slw = $('#navigation').data('sticky_logo_width');
    $(window).scroll(function(){
    //if scrolled down more than the headerÕs height
    if ($(window).scrollTop() > aboveHeight){
    // if yes, add ÒfixedÓ class to the <nav>
    // add padding top to the #content
    if ( $('#wpadminbar').length ) {
    $('#navigation').addClass('sticky-nav').css('top','28px').next().css('padding-top','52px');
    } else {
    $('#navigation').addClass('sticky-nav').css('top','0').next().css('padding-top','52px');
    }
    if (sl !== '') {
    $('.sticky_logo').show();
    $('#navigation > .inner').stop().animate({
    'padding-left': (slw+15)+'px',
    }, 300);
    }
    } else {

    // when scroll up or less than aboveHeight,
    $('#navigation').removeClass('sticky-nav').css('top', 0).next().css('padding-top','0');
    if (sl !== '') {
    $('.sticky_logo').hide();
    $('#navigation > .inner').stop().animate({
    'padding-left': 0,
    });
    }
    }
    });
    }

    and tryied to change

    $('#navigation > .inner').stop().animate({
    'padding-left': (slw+15)+'px',
    }, 300);
    }

    by

    $('#navigation > .inner').stop().animate({
    'padding-left': (slw+0)+'px',
    }, 300);
    }

    Or change the value by


    $('#navigation > .inner').stop().animate({
    'padding-left:'5px',
    }, 300);
    }

    or the value of the 300 and it doesnt change anything … :S

    Any other recommendations by any chance please ?

    Thank you for your time