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?
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
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
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
You guys rock. Thanks! Issue resolved.