Adding sticky menu effect in Primary Navigation of Daily Dish Pro Theme. I did following things:
- Create a sticky-menu.js file and upload into js folder
- Enqueue the JS file. Add the PHP script in functions.php file
- Add CSS in style.css file
Create a new JS file “sticky-menu.js” and upload in js folder. Here is the complete code of this JS file.