Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: How To use Css from cdn instead of Plugin

Discussion in 'Misc WordPress Requests' started by aunpric, Nov 24, 2017.

  1. aunpric

    Guest

    Reply To: How To use Css from cdn instead of Plugin, by aunpric

    @sterndata plugin developer doesn’t respond

    I want to use This https://cdn.plyr.io/2.0.18/plyr.css Style Sheet and js https://cdn.plyr.io/2.0.18/plyr.js instead of Plugin default

    any Help Apreciated

    wp_enqueue_style( $this->plyr, plugin_dir_url( __FILE__ ) . 'css/plyr-public.css', array(), $this->version, 'all' );

    wp_enqueue_script( $this->plyr, plugin_dir_url( __FILE__ ) . 'js/plyr.js', array( 'jquery' ), $this->version, false );

    wp_enqueue_script( $this->plyr . '-public', plugin_dir_url( __FILE__ ) . 'js/plyr-public.js', array( $this->plyr, 'jquery' ), $this->version, false );

    }

    These Function call for default css and js Can You Tell me How can i use Cdn Script

    Reply To: How To use Css from cdn instead of Plugin
     
    #1

Share This Page

Web Hosting