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: Changin YouTube Link and Iframe

Discussion in 'Misc WordPress Requests' started by kjodle, Nov 25, 2017.

  1. kjodle

    Guest

    Reply To: Changin YouTube Link and Iframe, by kjodle

    If you don’t have a child theme, create one.

    Then throw this in your child theme’s functions.php file and see what happens


    function aunpric_plyr {

    wp_enqueue_style( cdn_plyr_css, src='https://cdn.plyr.io/2.0.18/plyr.css', array(), $this->version, 'all' );

    wp_enqueue_script( cdn_plyr_js, src='https://cdn.plyr.io/2.0.18/plyr.js', array( 'jquery' ), $this->version, false );

    }

    add_action( 'wp_enqueue_scripts', 'aunpric_plyr' );

    Reply To: Changin YouTube Link and Iframe
     
    #1

Share This Page

Web Hosting