Tagged: avia.js, enfold, header, logo, transparent
Dear ENFOLD support Team,
we have changed avia.js so that the header stays always transparent:
if(transparent)
{
if(st > 50)
{
// //header.removeClass(‘av_header_transparency’);
// av_change_class(header, ‘remove’, ‘av_header_transparency’);
// }
// else
// {
// //header.addClass(‘av_header_transparency’);
av_change_class(header, ‘add’, ‘av_header_transparency’);
}
}
}
How could we have the same effect with a child theme?
Best regards,
Bernd
Hey Bernd,
Create a js folder then place a avia.js file inside. Add this on the child theme’s functions.php:
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 );
Best regards,
Mike
Hi Mike,
thank you for your help.
This topic can be closed.
Best regards,
Bernd