Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #405866

    My header is 116px originally, and when I scroll, it shrinks to 58px. That’s the behavior I want, but what if I wanted it to resize to 75px instead? How do I define the specific shrink size I desire?

    #406067

    Hey champlainconted!

    It’s set to half of the header size and there is no option to change it. If you wanted to change it then you would need to edit the avia_header_size function around line 1445 in the /enfold/js/avia.js file.

    Cheers!
    Elliott

    #406460

    Sounds good. Can I stick it in my “enfold-child” theme using the same structure? So enfold-child/js/avia.js? I ask because I tried and for some reason it doesn’t seem to be working.

    Thanks,

    Matt

    #406463

    Hi!

    Please add following code to Functions.php file of your child theme

    function wp_change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );

    Regards,
    Yigit

    #406474

    You guys rock. Thanks! Issue resolved.

    • This reply was modified 9 years, 8 months ago by champlainconted. Reason: added enthusiasm
    #406477

    Hey!

    You are welcome, we are always glad to help! Thanks for adding enthusiasm :)
    Let us know if you have any other questions or issues

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How do I change the height the header shrinks to, when I scroll?’ is closed to new replies.