Hi,
I would like to have the scrolled logo just 30% smaller , not 50%.
I have found this link, but I think I should do something else:
https://kriesi.at/support/topic/change-logo-image-for-scrolled-header/#post-188003
and
https://kriesi.at/support/topic/enfold-logo-resize/
If I do like in the 2nd link :
if(st < el_height/1.5)
{
newH = el_height – st;
av_change_class(header, ‘remove’, ‘header-scrolled’);
//header.removeClass(‘header-scrolled’);
}
else
{
newH = el_height/1.5;
//header.addClass(‘header-scrolled’);
av_change_class(header, ‘add’, ‘header-scrolled’);
}
–> then the logo is jumping. http://derevo.be/home
What should I do to get the logo from height 120px to height 80px, better to say 2/3 of the not-scrolled size?
Thank you very much.
Irina
Hey Irina!
Try with this modification instead:
if(st < el_height/2.5)
{
newH = el_height - st;
av_change_class(header, 'remove', 'header-scrolled');
//header.removeClass('header-scrolled');
}
else
{
newH = el_height/1.5;
//header.addClass('header-scrolled');
av_change_class(header, 'add', 'header-scrolled');
}
Best regards,
Josue
Hi Josue,
It’s working perfectly!! thanks a lot!