Skip to main content
3 votes

Hyva Themes : Magento2 How To Create Sticky Header?

Since it is on hyva, you can use TailwindCSS classes on the <header> tag. Add the following classes: sticky top-0 z-10. The z-10 can be increased/decreased based on your page since it only ...
S.Murtadha's user avatar
2 votes
Accepted

Hyva Themes : Magento2 How To Create Sticky Header?

Here is my working code example. It's also eliminated jerking of sticky header!! <script> window.onscroll = function() { showDesktopMenu() }; function showDesktopMenu() { ...
Dharmesh N Tukadiya's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible