I am using Magento2 and I need to make header sticky for the frontend .how can I make header sticky?
When user scroll page then header should be sticky at the top, how we can do this? this code should apply for desktop view only not for a mobile and iPad view.
Thanks in advance.
Best Answer
in header.phtml in your theme add this:
hope this will helps you.