alvias
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Gosh i am dumb, should have realized that myself 😀
Thank you very much both of you
ok, i dont get it 🙁
this is the path for the wp-pause-playlist-on-next.js
wp-content\themes\twentyseventeen-child\jsi created a blank functions.php for testing in
wp-content\themes\twentyseventeen-child\
looking like this<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } // Stop audio playlists from automatically advancing once a track is clicked define( 'WPPPON_VERSION', '1.0.0' ); // update version number as needed add_action( 'wp_enqueue_scripts', 'wp_pause_playlist_on_next' ); function wp_pause_playlist_on_next() { wp_enqueue_script( 'wp-pause-playlist-on-next', plugins_url( '/js/wp-pause-playlist-on-next.js' , __FILE__ ), array( 'wp-playlist' ), WPPPON_VERSION, true ); } ?>its still not working
Thats what i tryed, but its just showing the code under the footer or above the header
did you solve the problem?
i would also like to stop the autoplay
Viewing 4 replies - 1 through 4 (of 4 total)