Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • kmkmedia Friend
    #202616

    Hello,

    I was just wondering how you turn off the sticky menu. I moved the logo above the menu, so we need the logo and menu to stay in their position rather than scrolling with the user. I hid the .affix css in bootstrap but that causes the menu to jump when it starts to scroll, so it looks funny. Is there somewhere in the code I have to remove some javascript? I had to do that for another template but I couldn’t find code that was similar in the files I checked.

    Thanks,
    Shaun

    Eragon H Friend
    #554805

    You can comment out the below code in file root/templates/Wchd/js/script.js >> http://prntscr.com/556mbb

    // add class for mainmenu when scroller
    (function(){
    var min = null,
    sid = null,
    mainnav = $('#t3-mainnav'),
    navbar = mainnav.find('.navbar:first'),
    breakpoint = navbar.length ? navbar.offset().top : 0;

    if(mainnav.length){
    $(window).scroll(function() {

    if(min != $(window).scrollTop() > breakpoint){
    min = !min;

    min ? mainnav.addClass('affix') : mainnav.removeClass('min-mainnav');

    //force reflow
    mainnav[0].offsetWidth;
    mainnav.prevAll('.hplace').remove();

    if(min){
    $('<div class="hplace clearfix"></div>').insertBefore(mainnav).css('height', mainnav.outerHeight(true));
    mainnav.addClass('min-mainnav');
    } else {
    mainnav.removeClass('affix');
    }
    }
    })
    }

    })();

    cyclist87 Friend
    #555020

    Is it possible to turn off sticky menu only for mobile ? which takes half the screen with the logo….

    Eragon H Friend
    #555038

    I can see you have managed to solve this issue >> http://prntscr.com/55u0c4

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 3 voices, and was last updated by  Eragon H 9 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum