Shape 5

Joomla Templates => Health Guide - Club => : udgny July 06, 2016, 10:35:14 AM



: Logo Auto Resize
: udgny July 06, 2016, 10:35:14 AM
When scrolling down, I'd like the logo to automatically resize to fit completely in the menu. I thought there was a logo_small suffix but that doesn't seem to work. Can anyone help me with this auto resize code?


: Re: Logo Auto Resize
: mikek July 06, 2016, 04:19:57 PM
Hello,

There's nothing that will make the logo resize only on scroll, do you mean when you scale the window down in width instead? Please also provide a url to your site.


: Re: Logo Auto Resize
: udgny July 07, 2016, 03:36:00 PM
http://109.199.102.38/~sunrisemanor

Thanks


: Re: Logo Auto Resize
: mikek July 08, 2016, 09:23:33 AM
Hello,

Your logo is very tall, the template won't be default change that. Adding the following to custom.css would resize it though:

#s5_menu_wrap.s5_wrap #s5_logo_wrap, #s5_menu_wrap.s5_wrap_fmfullwidth #s5_logo_wrap {
max-width:86px !important;
margin:0px !important;
}


: Re: Logo Auto Resize
: miactive July 12, 2016, 03:15:25 PM
Hello,

Your logo is very tall, the template won't be default change that. Adding the following to custom.css would resize it though:

#s5_menu_wrap.s5_wrap #s5_logo_wrap, #s5_menu_wrap.s5_wrap_fmfullwidth #s5_logo_wrap {
max-width:86px !important;
margin:0px !important;
}

Where would we add that code?


: Re: Logo Auto Resize
: mikek July 12, 2016, 05:45:26 PM
Hello,

You would add it to custom.css in the template's css folder.


: Re: Logo Auto Resize
: miactive August 05, 2016, 05:02:12 PM
Instead of scaling, is there a way to add a different logo, or show only a certain area of the logo? The logo I'm stuck with is very blocky, so when it is scaled, it is unreadable.

Also, it aligns to the top, rather than centered, can I use a tag to center it?


: Re: Logo Auto Resize
: mikek August 06, 2016, 08:29:03 AM
Hello,

Something like that would require custom programming, we don't provide those kinds of services as part of our support. You would basically need to create another logo div on the index.php file and hide/show each logo at specific screen widths with custom css media queries.


: Re: Logo Auto Resize
: mktgape August 12, 2017, 02:05:02 PM
Mike:  where does the scroll height come from?  Couldn't that attribute be modified to accommodate larger logos?


: Re: Logo Auto Resize
: mikek August 14, 2017, 07:05:59 AM
Hello,

That's controlled in template.css under:

#s5_menu_wrap.s5_wrap #s5_menu_wrap2, #s5_menu_wrap.s5_wrap_fmfullwidth #s5_menu_wrap2

You could create custom css that shrinks the logo on scroll, but the request above was to replace it with entirely different logo.