Hi,
URL: tkramer.wpengine.com
I placed the logo in the theme at 340px X 156px, which is the recommended size. When scrolling down the page, the header resizes and the logo shrinks in size along with the header. I like the effect. However, I don’t want the logo to shrink as much. Instead of shrinking to 58px in height, I would like it to shrink to 120px in height.
Any help shall be appreciated.
Thanks,
Michael
Hey,
Please edit js > avia.js, find this code:
if(st < el_height/2)
{
newH = el_height - st;
header.removeClass('header-scrolled');
}
else
{
newH = el_height/2;
header.addClass('header-scrolled');
}
Replace it with:
if(st < el_height/1.5)
{
newH = el_height - st;
header.removeClass('header-scrolled');
}
else
{
newH = el_height/1.5;
header.addClass('header-scrolled');
}
Please don’t forget to remove browser cache then reload the page a few times.
Regards,
Ismael
Hi Ismael,
Thanks so much!
The code worked perfectly.
All the best,
Michael