Shopify themes, liquid, logos, and UX
Hello!
I am setting up a new theme - Dawn.
https://themes.shopify.com/themes/dawn/styles/default/preview?price%5B%5D=free&surface_inter_positio...
I would like to make the sticky header always visible, as opposed to the current header which only shows upon scrolling up.
How would I accomplish this?
Thanks!
Yes please do. What do I need to change? Thank you
It seems like I need to chagne something in header.liquid but I want to be sure of what
This is PageFly - Advanced Page Builder. I would love to give you some recommendations
Add this css at the bottom
Online Store->Theme->Edit code
assets->base.css
.announcement-bar__message {
margin-bottom: -11px !important;
}
.header {
position: fixed !important;
top: 0px !important ;
background-color: #fff !important;
width: 100% !important;
}
Best regards,
PageFly
Thank you for your assistance. Unfortunately, that seemed to have broken the header in some way:
Yes of course it is www.boogiethreads.com
i am not using the Dawn theme right now though. I am working on it before launching
This is PageFly - Advanced Page Builder. I would love to give you some recommendations
please try again with this code
Add this css at the bottom
Online Store->Theme->Edit code
assets->theme.scss.css
.site-header__upper {
padding-top: 31px !important;
position: fixed !important;
top: 0 !important;
z-index: 99 !important;
width: 100% !important;
background-color: #000 !important;
}
.sticky {
position: fixed !important;
top: 15% !important;
z-index: 99 !important;
width: 100% !important;
}
.sticky--active {
position: fixed;
top: 15% !important;
width: 100%;
-webkit-transform: none !important;
transform: none !important;
}
Best regards,
PageFly
I do not have a theme.scss.css but a base.css. I added it there and it does not seem that anything happened.
I can see you have changed the header, if you still want the header to always sitcky try this code and this time in the base.css file
Add this css at the bottom
Online Store->Theme->Edit code
assets->base.css
.header-wrapper {
position: fixed !important;
top: 0 !important;
width: 100% important;
}
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