I want my header to be staying at the top whilst I’m scrolling down. I don’t know how to do that, can anyone help me?
Hello @AndreNL ,
please share the URL of your website.
Current website I’m just applying small patches
Hi @AndreNL ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file base.css, theme.css, styles.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file → Save
header.header.header-single-line {
position: fixed !important;
top: 0;
width: 100vw !important;
}
.shopify-section.shopify-section-group-header-group.section-header-navigation {
position: fixed !important;
top: 83px;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you
1 Like
Thank you!
Works perfectly!
Hi @AndreNL ,
We’re happy to see that our suggestion helped you solve the issue.
Should you need any further information, please do not hesitate to contact us by tagging directly at Community post. We will check and let you know soon.
Thanks in advance