Hi, a time ago you gave me a js code to change my header logo on scroll, after several updates i think that classes have change and i can’t make work again. Can you help me, please?
this is the website https://www.balandrovinos.com/
and this the code
jQuery(function($) {
$( window ).scroll(function() {
if($(this).scrollTop() >= 48) {
$(’.hm1.x-bar .hm5.x-image img’).attr(‘src’,‘http://www.balandrovinos.com/wp-content/uploads/2017/06/logotipo-balandro.png’);
$(’.hm1.x-bar .hm5.x-image’).css(‘margin’,‘0 80px’);
$(’.hm1.x-bar .hm5.x-image img’).css(‘width’,‘171px’);
}else {
$(’.hm1.x-bar .hm5.x-image img’).attr(‘src’,‘http://www.balandrovinos.com/wp-content/uploads/2017/05/imagotipo-balandro.png’);
$(’.hm1.x-bar .hm5.x-image’).css(‘margin’,‘115px 40px 60px 40px’);
$(’.hm1.x-bar .hm5.x-image img’).css(‘width’,‘87px’);
}
});
});