Shopify themes, liquid, logos, and UX
Hello, in minimal theme there's no sticky header in default settings.
I added it by using those codes;
.header-bar {
position: fixed;
z-index: 999;
width: 100%;
}
header.site-header {
padding-top: 100px;
}
It works just fine but also I'd like to hide it when scroll down. I tried many codes that are on this forum and also on the web, nothing changed.
My store link: https://wiggleduck.com/
Thank you.
hello @thevista888
Please add the following code at the bottom of your assets/theme.css for the mobile.
.header-bar {
position: relative !important;
}
try this code
https://codepen.io/JGallardo/pen/lJoyk
@KetanKumar
I'm not sure if this is what I'm looking for, in the example of the code, the header is always visible on the top. I should make it visible when scrolling up and invisible when scrolling down.
I found this one on the web, that's a perfect example of what I'm looking for, but I need little guidance to apply it. I tried to add the "JS" codes to the theme.js file.
It did not work. I guess I should edit html&css too, I'm not sure, how can i apply it?
yes modification header code as per demo that work custom changes
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024