I’d like to change the logo when the navigation is fixed (header-scrolled class).
How can I go about doing this?
Also, I can’t seem to center my alternative responsive logo using this method:
@media only screen and (max-width: 767px) {
.responsive .logo {
background: url('http://ksha.com/KSHA_logo_mobile.png') no-repeat;
position: relative;
}
.responsive .logo img {
margin: 0 auto;
display: none;
}
}
I can only add padding, but how can I make it center?
Hey!
Please try following code to center your logo
div .logo { left: 35%; }
To change the logo when scrolled, You are going to need to hire a freelance developer on Microlancer or Codeable for that kind of customization as it is beyond the scope of support we can provide. You can also request quote here.
Cheers!
Yigit
Thanks! No clues for me at all on the header-scrolled?
Hi!
You can add your second logo in Header.php file within a div with a class and add custom CSS code such as following to Quick CSS
.your-logo { display: none; }
.header-scrolled .your-logo { display: block; }
Using that class you can add animations for smoother transition
Cheers!
Yigit
Perfect! Thank you so much.