Making Primary Navigation Sticky in Genesis Sample Theme

Adding sticky menu effect in Primary Navigation of Genesis Sample Theme. I did following things:

  1. Create a sticky-menu.js file and upload into js folder
  2. Enqueue the JS file. Add the PHP script in functions.php file
  3. Add CSS in style.css file

Step 1

Create a new JS file “sticky-menu.js” and upload in js folder. Here is the complete code of this JS file.

This content is only available to members. You must subscribe the monthly membership plan ($9.99 USD).

Share This Article

Subscribe Membership Plan ($9.99/mo)

  • Get full access to all premium tutorials
  • Get Support for the posted content
  • Request for specific how-to tutorials
  • Cancel the subscription at anytime

Reader Interactions

Leave A Reply

Your email address will not be published. Required fields are marked *