Archived

This topic is now archived and is closed to further replies.

Jfschneid

Can fitvids.js be disabled from the Theme?

2 posts in this topic

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

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)


Have you searched the forums yet or checked out the DMS user docs?

PageLines geek, blogging at MyUntangledLife.com

Share this post


Link to post
Share on other sites