BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › videos not running
Tagged: video problem
- This topic has 20 replies, 3 contibutors, and was last updated 10 years ago by Anonymous.
Question
October 13, 2014 at 9:40 pm #32555@
Anonymous@alext I don’t have a solution just yet, but I can confirm the problem is real, and that it is caused by a conflict with modernizr.min.js, which is a fairly popular script so I am surprised.
A quick fix would be to comment out the line that loads that script, but that may cause other problems.
/buddyboss-inc/theme-functions.php
~ line 134
//wp_enqueue_script( 'buddyboss-modernizr', get_template_directory_uri() . '/js/modernizr.min.js', false, '2.7.1', false );
Answers
October 21, 2014 at 8:19 am #32761@alextok, thanks a lot for this information.
I just checked – and indeed, the video is running after I commented out the line 134.
I am a bit concerned about the potential other problems you were talking about – I do not want to open pandora´s box. Where would you anticipate those problems? might there be misfunctions in plugins? certain buddypress components? …October 21, 2014 at 5:36 pm #32778@
AnonymousAny issues will be with visual stuff, particularly on mobile. The actual issue is a JS conflict between modernizr and fitvids. modernizr is used to add support for JS and CSS features in all browsers, fitvids is used to resize your videos to the width of the page, so they look nice on mobile devices.
An alternative fix, which is safer, is just to comment out the loading of fitvids.
/buddyboss/js/buddyboss.js
Around line 767, section 3.6. Just comment that section out, or delete it. You can revert the other change. This will also solve your problem until we roll out an official patch, and will have no ‘major’ effects. Only issue is that videos will resize wrong (stretched tall) on mobile devices, which isn’t the end of the world.
November 16, 2014 at 1:28 am #33496@
Anonymous@alext Finally fixed this, available now in 4.0.8
November 16, 2014 at 7:02 am #33501@alextHi,
and many thanks for the update! installed version 4.0.8 of the theme and everything runs smoothly on all platforms including mobile.
great support!
best regards,
AlexNovember 16, 2014 at 4:12 pm #33509@
AnonymousAwesome!
- The question ‘videos not running’ is closed to new replies.