Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1416772

    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.

    #1416843

    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

    #1416845

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.