• Hi! How to add custom javascript with child theme?

    add_action( 'wp_enqueue_scripts', 'astra_child_scripts' );
    /**
     * Enqueue scripts and styles.
     */
    function astra_child_scripts() {
       wp_enqueue_script( 'astra-child', get_stylesheet_directory_uri() . '/js/jquery.easing.1.3.min.js', array( 'jquery' ), false, true );
    }

    does not work!

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add custom javascript with child theme’ is closed to new replies.