June 25, 2020 at 10:15 pm #1225668
I would like to change the final size of the shrinking header and logo when scrolling down the page. For me, the default size is too small.
Thanks!June 27, 2020 at 5:08 am #1226029June 27, 2020 at 7:53 am #1226031
only change the size ( start height and end height should be bigger ) but the shrink ration stayes the same : 1/2
or do you intend to change that too?
and here vor actual solution : https://kriesi.at/support/topic/shrinking-of-header-amount-an-info/#post-1044887June 27, 2020 at 4:06 pm #1226067
Did you get it working with Guenni007’s help or do you need more?
VictoriaJune 27, 2020 at 8:11 pm #1226113June 27, 2020 at 8:38 pm #1226133
There is an option to set your custom header height in the theme options.
Glad you got it working for you with Guenni007’s help! :)
If you need further assistance please let us know.
VictoriaJune 27, 2020 at 8:41 pm #1226136
@victoria, I know about that option and I use it all of the time. I just wish there was an option to set custom header height for the shrinking header to override the default 1/2 size.June 29, 2020 at 3:53 pm #1226489June 29, 2020 at 9:40 pm #1226602
yes that would be nice – the mathematic is very ease and the avia-snippet-sticky-header.js could be as it is only these two factors had to be in relation to an input field ( f.e. shrink_factor – with standard : 2 ) on register-admin-options.php – this input field has dependency like custom height only visible when custom height is choosen.
$avia_elements = array( "slug" => "header", "name" => __("Header Shrink Factor", 'avia_framework'), "desc" => __("Choose a custom shrink factor - two digits f.e. 2.85", 'avia_framework'), "id" => "header_shrink_factor", "type" => "text", "std" => "2", "required" => array('header_size','custom') );
the custom height is not important on those calculations – because it can be shortend
one could also rearrange this formula, since division by a quotient is equal to multiplication by the reciprocal value
on line 64 :
if(st < el_height*(shrink_factor-1)/shrink_factor
on line 76 :
newH = el_height/shrink_factor;
You must be logged in to reply to this topic.