Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • darengr Friend
    #882370

    Hi,
    in your demo, the header appears transparent at the top of the page. When we scroll down, at some point it decides to get the affix class, and appears solid.
    The question is, what is the mechanism (code or css?) that decides at which vertical scrolling point to show the second header (solid), because in some pages the solid should be shown earlier.
    thanks


    1. header-solid
    2. header-transparent
    timtecsa Friend
    #882670

    I agree. The moment the masthead is out of site would be good.

    Saguaros Moderator
    #883977

    Hi

    It’s Affix plugin of Bootstrap: http://getbootstrap.com/javascript/#affix

    For how we add affix to the header of this template, you can check the JS file: ROOT/templates/ja_mono/js/script.js

    Look for this snippet of code (line 140):

        // Add Affix for header
        $heightHeader = $('.t3-header').outerHeight();
        $heightBlocktop = $('.block-left').outerHeight() - ($('.t3-header').outerHeight() * 1.5);
        $('.t3-header').affix({
          offset: {
            top: $heightBlocktop,
          }
        })
    
    ................
    darengr Friend
    #885622

    Thanks for reply. It seems a value, based on t3-header outerheight * 1.5, so it very difficult to use, if it is always the same. Various pages have either masthead images displayed (of varying height probably), or other text or images, so I think I will use a solid-fixed header. regards

    Saguaros Moderator
    #885959

    Let me know if you need further help.

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

This topic contains 4 replies, has 3 voices, and was last updated by  Saguaros 8 years, 9 months ago.

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