Shopify themes, liquid, logos, and UX
Hello, we are looking for a solution to make the header sticky on mobile only. Focal theme doesn't allow you to disable sticky-header for desktop.
Thanks!
Hi @hdkingy,
You can try this code by following these steps:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css or styles.css
Step 3: Insert the below code at the bottom of the file -> Save
@media (min-width: 1200px) {
.shopify-section.shopify-section-group-header-group.shopify-section--header {
position: relative !important;
transform: translateY(-36px);
}
.shopify-section.shopify-section-group-header-group.shopify-section--header .header {
padding: 1px;
}
}
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 😍😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Hi @hdkingy
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
@media (min-width:768px) {
html, body {
overflow-x: hidden;
}
}
</style>
When checking on the issue for you,
I discovered another one that you might want to address on the product page:
When I click on the review number, it doesn't scroll directly to the review section but instead goes to the description.
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Worked good, thank you.
Do you happen to know how to fix that issue with the reviews as well?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025