Shopify themes, liquid, logos, and UX
Hello,
I have the header set to fixed, but since I have touched a couple of things now it is no longer fixed and I have everything done for that. If you can help me please.
I have it in Spanish, but you can see that the section is in FIXED:
Thanks You!
Solved! Go to the solution
This is an accepted solution.
Hello @ArnauP
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file -> Save
<style>
html, body {
overflow-x: unset !IMPORTANT;
}
.shopify-section-header-hidden {
top: 0 !IMPORTANT;
}
</style>
Best Regards,
Dws_pvt_ltd
<style>
html, body {
overflow-x: unset !IMPORTANT;
}
.shopify-section-header-hidden {
top: 0!IMPORTANT;
}
</style>
Hello @ArnauP
Follow these Steps:
1) Go to Online Store
2) Open Theme Customize
3) Theme Settings in header > Sticky header select dropdown in Always.
4) See image.
Best Regards,
Dws_pvt_ltd
The second image that i send its exactly what you say. I already have this option selected.
This is an accepted solution.
Hello @ArnauP
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file -> Save
<style>
html, body {
overflow-x: unset !IMPORTANT;
}
.shopify-section-header-hidden {
top: 0 !IMPORTANT;
}
</style>
Best Regards,
Dws_pvt_ltd
<style>
html, body {
overflow-x: unset !IMPORTANT;
}
.shopify-section-header-hidden {
top: 0!IMPORTANT;
}
</style>
It works, in Theme Liquid, thanks a lot dws_pvt_ltd.
Hey @ArnauP I believe what you want is to have a “sticky” header.
You can do this by following these easy steps
- Go to Online Store then click on Theme then go to Edit code.
- Search file theme.css
- Copy and paste this code at bottom of the file then save it.
div#shopify-section-sections--19397825560915__header {
position: sticky;
z-index: 999;
top: 0;
}
div#shopify-section-sections--19397825560915__announcement {
position: sticky;
z-index: 999;
top: 41%;
}
I think this should solve that and let me know if it does!
Doesn't work, but Thanks You Shadowtitan.
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