-
AuthorPosts
-
darengr Friend
darengr
- Join date:
- January 2012
- Posts:
- 108
- Downloads:
- 112
- Uploads:
- 30
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
February 13, 2016 at 11:53 am #882370Hi,
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-
timtecsa Friend
timtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
February 14, 2016 at 1:36 pm #882670I agree. The moment the masthead is out of site would be good.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 16, 2016 at 3:55 am #883977Hi
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 Frienddarengr
- Join date:
- January 2012
- Posts:
- 108
- Downloads:
- 112
- Uploads:
- 30
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
February 17, 2016 at 5:09 pm #885622Thanks 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
-
AuthorPosts
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
Jump to forum