non-sticky navigation menu on mobile view (empire theme)

non-sticky navigation menu on mobile view (empire theme)

Wellanie
Shopify Partner
75 0 21

Hi,

 

how can I make it a non-sticky menu for mobile view? Originally, empire theme is non-sticky menu but I added a code to make it otherwise. the downside is it also became non-sticky on mobile view and the page can't be seen anymore seen it's covering the whole screen.

Wellanie_0-1689662606961.png

 

Website's link.


Thanks!

 

Replies 7 (7)

Guleria
Shopify Partner
3429 683 966

Hello @Wellanie ,

 

The css you used to make the header sticky with classes  ( .site-header-sticky .site-header ) 
use it with media query in this way sticky menu will work only for desktop only.

Thanks

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com
- Try GEMPAGES a great page builder
- If you want PAYPAL

Typostore
Shopify Partner
117 11 13

Hello, you can open file theme.css and paste my code at bottom file it will work for you

 

@media screen and (max-width: 800px){
     body .site-header-sticky .site-header {
       position: relative;
    }
}

 

Thank you

 

- I'm dev shopify. | Skype : hoang.nguyenit92 | Email: typostores@gmail.com
- Is my reply helpful? Click Like to let me know!
- If you got your answer? Mark it as an Accepted Solution
Wellanie
Shopify Partner
75 0 21

Hi,

 

Thanks for your reply. I tried to paste the code but the nav menu is still sticky for the mobile view.

Typostore
Shopify Partner
117 11 13

when I check on your site, I see it's working and not see sticky, how it not working for you?

- I'm dev shopify. | Skype : hoang.nguyenit92 | Email: typostores@gmail.com
- Is my reply helpful? Click Like to let me know!
- If you got your answer? Mark it as an Accepted Solution
Wellanie
Shopify Partner
75 0 21

did you check it using your phone?

Typostore
Shopify Partner
117 11 13

Yes, I just check on my phone: https://www.aldmarketing.com/

I'm using android

- I'm dev shopify. | Skype : hoang.nguyenit92 | Email: typostores@gmail.com
- Is my reply helpful? Click Like to let me know!
- If you got your answer? Mark it as an Accepted Solution
Wellanie
Shopify Partner
75 0 21

I'm not sure why. Is there a difference if I'm using ios? the thing is, also in Shopify admin, the nav menu is still sticky...