• Hi,

    I want to use the below slide and push menu on a wp page.

    http://tympanus.net/codrops/2013/04/17/slide-and-push-menus/

    WP page:

    http://makeawish.ourverybigday.com/about-us/

    1, added html and ccs
    2, uploaded classie.js to my js folder
    3, created menu.js from the code from tutorial and uploaded to folder
    4, added the below to function.php

    add_action( ‘wp_enqueue_scripts’, ‘exmaple_enqueue’ );

    function exmaple_enqueue() {
    wp_enqueue_script( ‘jquery’ );
    wp_enqueue_script( ‘classie’, get_template_directory_uri() . ‘/js/classie.js’, array(), ‘1.0.0’, true );
    wp_enqueue_script( ‘menu’, get_template_directory_uri() . ‘/js/menu.js’, array(), ‘1.0.0’, true );
    }

    No joy 🙁

    Anyone could help me out pls

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter vvaroczi

    (@vvaroczi)

    I have tried the below as well, my-account is the page the menu will go

    add_action( ‘wp_enqueue_scripts’, ‘menu_scripts’ );

    function menu_scripts() {
    wp_enqueue_script( ‘jquery’ );
    wp_enqueue_script( ‘classie’, get_template_directory_uri() . ‘/js/classie.js’, array(), ‘1.0.0’, true );
    wp_enqueue_script( ‘menu’, get_template_directory_uri() . ‘/js/menu.js’, array(), ‘1.0.0’, true );
    wp_register_script(‘menu’, get_stylesheet_directory_uri() . ‘/js/menu.js’, false, null, true);
    if(is_page(‘my-account’)){ wp_enqueue_script(‘menu’); }
    }

    Thread Starter vvaroczi

    (@vvaroczi)

    I have also tried this

    add_action( ‘wp_enqueue_scripts’, ‘menu_scripts’ );

    function menu_scripts() {
    wp_enqueue_script( ‘jquery’ );
    wp_enqueue_script( ‘classie’);
    wp_enqueue_script( ‘menu’, get_template_directory_uri() . ‘/js/menu.js’, array(), ‘1.0.0’, true );
    }

    Still not working

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Slide and Push Menu – Classie.js’ is closed to new replies.