xolotl

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • xolotl
    Customer

      FWIW, I finally got the hamburger to appear by adding the following code snippet to epik’s functions.php:

      //* Enqueue mobile header script
      add_action( 'wp_enqueue_scripts', 'lb_mobile_header' );
      function lb_mobile_header() {
              wp_enqueue_script( 'lb_mobile_header', get_stylesheet_directory_uri() . '/js/lb_mobile_header.js', array( 'jquery' ), '', true );
      }
      xolotl
      Customer

        Thanks for this detailed post!

        I’ve added code to a stock, current Epik theme and Genesis 2.0.1 just as you have it above (except changing CSS IDs as appropriate) & the targeted menu disappears at screen widths under 580px, but I’m not able to get the hamburger icon to appear.

        I’m seeing the following error and haven’t been able to figure out how the jQuery reference is to be made:

        Uncaught ReferenceError: jQuery is not defined (index):43
        (anonymous function) (index):43
      Viewing 2 posts - 1 through 2 (of 2 total)