Re: Header Sticky On Mobile Only - Focal Theme

Header Sticky On Mobile Only - Focal Theme

hdkingy
Explorer
48 0 20

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)

BSSCommerce-HDL
Shopify Partner
2305 835 911

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

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

PageFly-Richard
Shopify Partner
5011 1120 1805

 

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!


➜ 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.

hdkingy
Explorer
48 0 20

Worked good, thank you.

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