• 0

Can fitvids.js be disabled from the Theme?

Question

Posted · Report post

Hello,  I was wondering if anyone knew how to or if it was possible to disable  fitvids.js from the theme?  It is messing with the video player I am trying to use on our site.

 

Thanks!

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted · Report post

Hi Jfschneid - You can dequeue any javascript using a child theme and a hook. Add the following to your child functions.php:

 

add_action('wp_enqueue_scripts', 'deregister_pl_fitvids', 100);
function deregister_pl_fitvids() {
wp_dequeue_script('pagelines-fitvids');
}

 

(Hat-tip to @Simon_P)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now