fitVids() and how to disable?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Jul 27, 2016 9:30 pm
Reply with quote
Report this post
HI,
there is a jQuery script called fitVids() that I need to disable it cause is making conflicts. Why is it used for and now to disable it?

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Sun Jul 31, 2016 12:34 pm
Reply with quote
Report this post
Hi

It's a script for videos popup. You can disable it in template settings or directly from code at /layout/default.php (bottom of this file).
User avatar
Moderator

GK User
Mon Aug 01, 2016 10:45 am
Reply with quote
Report this post
Can you please check how to disable it from the Template settings?

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Fri Aug 05, 2016 2:56 pm
Reply with quote
Report this post
Hi

Sorry my mistake. The options to enable/disable is not in News2 template. Please edit /layout/default.php and remove this code:

Code: Select all
   <jdoc:include type="modules" name="debug" />
   <script>
   jQuery(document).ready(function(){
         // Target your .container, .wrapper, .post, etc.
         jQuery("body").fitVids();
   });
   </script>
User avatar
Moderator

GK User
Sat Aug 06, 2016 12:28 pm
Reply with quote
Report this post
Thank you.
Gorast
User avatar
Platinum Boarder

teitbite
Mon Aug 08, 2016 5:35 pm
Reply with quote
Report this post
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron