f.e.: 0.01 – so there is the possibility to use the class settings header-scrolled etc. without a visible shrink.
i see the filter : avf_header_shrink_factor how to use it the correct way – and are values less than 1 allowed?
Edit: this works good:
function custom_shrink_factor($shrink_factor){
$shrink_factor = '0.1';
return $shrink_factor;
}
add_filter('avf_header_shrink_factor', 'custom_shrink_factor');
PS: 0.1 seems to be small enough to have no visible shrinking.
Hey Guenter,
Actually $shrink_factor is intended to be integer.
In enfold\js\avia-snippet-sticky-header.js around line 146 you find:
const value = parseInt( shrink_factor );
This results to 0 with 0.1 so it should acutally work (header remains unshrinked)
Best regards,
Günter
but the snippet above works – your objection just says that if the value is between 0 and 1 by parseInt that is set to 0.
You’re right, I should have looked in there. With setting a multiplicator , I generally feel uncomfortable setting the zero in case the value is used elsewhere for a division.