Header Sticky On Mobile Only - Focal Theme

hdkingy
Excursionist
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.

 

Thanks!

 

https://pondstream.com/

Replies 3 (3)

BSSTech-Venture
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

BssTechVenture_0-1715728812454.png

Step 2: Search file base.css, theme.css or styles.css

BssTechVenture_1-1715728837311.png

 

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: 

BssTechVenture_2-1715728904976.png

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

PageFly-Richard
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>

 

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

PageFlyRichard_0-1715734687343.png

 

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.

hdkingy
Excursionist
24 0 7

Worked good, thank you.

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