Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1225668

    Hello,
    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!

    #1226029

    See below…

    #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?

    Introduction:
    https://kriesi.at/support/topic/shrinking-of-header-amount-an-info/

    and here vor actual solution : https://kriesi.at/support/topic/shrinking-of-header-amount-an-info/#post-1044887

    #1226067

    Hi JPOsteen,

    Did you get it working with Guenni007’s help or do you need more?

    Best regards,
    Victoria

    #1226113

    @Guenni007, Thank you for the response. To keep it simple I just increased the original size of the header.

    I wish @kriesi would build an option into the backend to make more customization easier.

    #1226133

    Hi JPOsteen,

    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.

    Best regards,
    Victoria

    #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.

    #1226489

    Hi JPOsteen,

    I will forward your request to our devs.

    Best regards,
    Victoria

    #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.

    f.e.:

      $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;
    thats all.

    • This reply was modified 4 years, 4 months ago by Guenni007.
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.