Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #295541

    Hello,

    I tried to implement the functions.php tweak found here: https://kriesi.at/support/topic/use-avia-js-in-child-theme/

    That plain old does not work. Has something changed since then that needs to be accounted for?

    #295640

    Hey!

    Try this one:

    function wp_change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
    

    Cheers!
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.