Shopify themes, liquid, logos, and UX
Hi, as you can see, my logo looks perfectly fine on my slideshow. However, when I scroll down, the 2nd picture occurs. I have implemented a code that allows a sticky header. Is there any way to make the logo change to black once I scroll past the slideshow? My url is https://a-lineage-story.myshopify.com/. The password is 'beckew'
2nd photo (no logo seen cause it is white on a white background)
Solved! Go to the solution
This is an accepted solution.
add following css class
.template-collection .header-sticky a {
color: #000!important;
}
This is an accepted solution.
Please add following css class
.template-cart .header-sticky a {
color: #000!important;
}
.template-product .header-sticky a {
color: #000!important;
}
.template-page .header-sticky a {
color: #000!important;
}
.template- .header-sticky a {
color: #000!important;
}
you have added any css class in your css file ?
yes,
this is what i used to make a sticky header
.header-wrapper, .header-container { position: fixed; z-index: 1; background-color: rgba({{ settings.color_body_bg }}, 0.0); width: 100%; } .header-sticky .header-wrapper { background-color: rgba({{ settings.color_body_bg }}, 1); @include at-query($min, $medium) { .logo img{ height: 60px; } } .site-nav { transition: all .3s ease, height .8s ease; -webkit-transition: all .3s ease, height .8s ease; -o-transition: all .3s ease, height .8s ease; margin-top:0 !important; } } .header-sticky .header-wrapper { } .main-content { padding-top: 260px; } /*Bof padding non index pages*/ body:not(.template-index) .main-content { padding-top: 520px;/*this is based on 260px above but that seems huge!*/ } /*Eof padding non index pages*/ .shopify-payment-button { z-index: 0; }
ok no problem add following css class
Please add the following code at the bottom of your assets/theme.scss.liquid file.
.header-sticky.header-wrapper {
background-color: #000 !important;
}
.header-sticky a {
color: #fff!important;
}
hi, that works well, but when I go into my collections and scroll down, the white text turns invisible.
Please share screenshot what do you want.
Thanks!
This is before I scroll down.
This is after I scroll down.
This is an accepted solution.
add following css class
.template-collection .header-sticky a {
color: #000!important;
}
thank you so much!
add following css class for product and cart page
.template-cart .header-sticky a {
color: #000!important;
}
.template-product .header-sticky a {
color: #000!important;
}
.template-page .header-sticky a {
color: #000!important;
}
I also noticed that on my F.A.Q. page and terms of service, the same issue happens where the navigation menu disappears because it is white on white.
This is an accepted solution.
Please add following css class
.template-cart .header-sticky a {
color: #000!important;
}
.template-product .header-sticky a {
color: #000!important;
}
.template-page .header-sticky a {
color: #000!important;
}
.template- .header-sticky a {
color: #000!important;
}
The burger icon on my collections page on mobile also turns white when I scroll down the page on mobile. Is there any way to fix this? Sorry for all the issues, I appreciate all your help.
add following css for mobile burger icon
.template-index .header-sticky .burger-icon {
background-color: #fff !important;
}
Nevermind, fixed it. Sorry about all of those issues! Thank you and have a good night
is it possible to make this sticky header on the pages black and the font white?
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024