Header Sticky On Mobile Only - Focal Theme

24 0 7

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.





Replies 3 (3)

Shopify Expert
320 75 79

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 😍😍

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.

For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS

BSS Commerce - Shopify Apps & Store Development Service Provider

Hire a Shopify expert | Shopify Plus Store Development

Shopify Partner
4272 969 1620


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>


@media (min-width:768px) {
html, body {
    overflow-x: hidden;


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!

PageFly - #1 Page Builder for Shopify merchants.

All features are available from Free plan. Live Chat Support is available 24/7.

24 0 7

Worked good, thank you.

Do you happen to know how to fix that issue with the reviews as well?