Conversation
supportThe admin panel encountered problems when I active fluid player
add this code to the fluid-player.php file add_action(‘wp_enqueue_scripts’, ‘callback_for_setting_up_scripts’); function callback_for_setting_up_scripts() { wp_register_style( ‘fluidplayercss’, ‘ https://cdn.fluidplayer.com/v2/current/fluidplayer.min.css’ ; ); wp_enqueue_style( ‘fluidplayercss’ ); wp_enqueue_script( ‘namespaceformyscript’, ‘ https://cdn.fluidplayer.com/v2/current/fluidplayer.min.js’ ;, array( ‘jquery’ ) ); } and remove this code from the FluidPlayerPlugin.php file. line 6-15 private static function loadAssets() { wp_enqueue_script( ‘fluid-player-js’, self::FP_CDN_CURRENT_URL . ‘/fluidplayer.min.js’, [], false ); wp_enqueue_style(‘fluid-player-css’, self::FP_CDN_CURRENT_URL . ‘/fluidplayer.min.css’); } and line 19 static::loadAssets(); ok enjoy! This reply was modified 7 years ago by mr.nosrati .
add this code to the fluid-player.php file add_action(‘wp_enqueue_scripts’, ‘callback_for_setting_up_scripts’); function callback_for_setting_up_scripts() { wp_register_style( ‘fluidplayercss’, ‘ https://cdn.fluidplayer.com/v2/current/fluidplayer.min.css’ ; ); wp_enqueue_style( ‘fluidplayercss’ ); wp_enqueue_script( ‘namespaceformyscript’, ‘ https://cdn.fluidplayer.com/v2/current/fluidplayer.min.js’ ;, array( ‘jquery’ ) ); } and remove this code from the FluidPlayerPlugin.php file. line 6-15 private static function loadAssets() { wp_enqueue_script( ‘fluid-player-js’, self::FP_CDN_CURRENT_URL . ‘/fluidplayer.min.js’, [], false ); wp_enqueue_style(‘fluid-player-css’, self::FP_CDN_CURRENT_URL . ‘/fluidplayer.min.css’); } and line 19 static::loadAssets(); ok enjoy! This reply was modified 7 years ago by mr.nosrati .