Viewing 1 replies (of 1 total)
  • Thread Starter mr.nosrati

    (@mrnosrati)

    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 5 years, 10 months ago by mr.nosrati.
Viewing 1 replies (of 1 total)
  • The topic ‘Problem with rtl’ is closed to new replies.