-
AuthorPosts
-
May 8, 2013 at 4:58 pm #22992
When the header shrinks my logo is not readable. All I want to know is what do I need to do to make a different logo image load when the header shrinks? because my logo will not look good when shrinked. I would rather make a different one for the small header.
for example fullsize header = logo.png
small header = smalllogo.png
May 8, 2013 at 11:59 pm #118163Hi,
You can’t create a new logo for the shrink header. Can you give us a link to your website? Maybe we can fix the issue with CSS modification.
Regards,
Ismael
May 9, 2013 at 12:06 am #118164This is the website:
May 9, 2013 at 1:10 am #118165Hi,
Please edit js > avia.js then find this code
//check if the browser supports element rotation
function avia_header_size()
{
var win = $(window),
header = $('.fixed_header #header'),
elements = $('#header_main .container, .main_menu ul:first-child > li > a:not(.avia_mega_div a)'),
el_height = $(elements).filter(':first').height(),
isMobile = 'ontouchstart' in document.documentElement,
scroll_top = $('#scroll-top-link'),
set_height = function()
{
var st = win.scrollTop(), newH = 0;
if(st < el_height/4)
{
newH = el_height - st;
//header.removeClass('shadow');
}
else
{
newH = el_height/2;
//header.addClass('shadow');
}
elements.css({height: newH + 'px', lineHeight: newH + 'px'});
}
if(!header.length) return false;
if(isMobile)
{
return false;
}
win.scroll(set_height);
set_height();
}Replace it with
//check if the browser supports element rotation
function avia_header_size()
{
var win = $(window),
header = $('.fixed_header #header'),
elements = $('#header_main .container, .main_menu ul:first-child > li > a:not(.avia_mega_div a)'),
el_height = $(elements).filter(':first').height(),
isMobile = 'ontouchstart' in document.documentElement,
scroll_top = $('#scroll-top-link'),
set_height = function()
{
var st = win.scrollTop(), newH = 0;
if(st < el_height/1.5)
{
newH = el_height - st;
//header.removeClass('shadow');
}
else
{
newH = el_height/1.5;
//header.addClass('shadow');
}
elements.css({height: newH + 'px', lineHeight: newH + 'px'});
}
if(!header.length) return false;
if(isMobile)
{
return false;
}
win.scroll(set_height);
set_height();
}Regards,
Ismael
May 9, 2013 at 7:41 pm #118166I used this code. Only concern is when scrolling slowly, the logo still gets really tiny then jumps to the smaller size. Is there a way to go from the larger size to the smaller one without the bump?
May 9, 2013 at 9:33 pm #118167 -
AuthorPosts
- The topic ‘Small logo’ is closed to new replies.