FitVids for WordPress
[resolved] FitVid doesn't work inside tabs (4 posts)

  1. idoremus
    Posted 3 years ago #

    We are trying to use Youtube videos inside tabs created by the "WP UI - Tabs, accordions and more" plugin. The first tab works well but switching to a new tab the proportions get all out of whack. If we refresh the page, the tab that was bad - the video now fits. Is there a way to get the FitVid script to fire when a new tab is clicked?

    Example: http://tinyurl.com/bv6nhhs

    Thanks, Ian


  2. Kevin Dees
    Plugin Author

    Posted 3 years ago #

    This kind of thing seems to be a recurring issue with AJAX plugins. I dont know if the tabs plugin uses ajax but if it does you will need to run fitvids on the newly loaded content with a little custom code.

    Fit vids only works for videos that are in markup when the page is first downloaded.

  3. idoremus
    Posted 3 years ago #

    Kevin, thank you for your reply. I assumed that is the case. Are you telling me we should come up with a fix (custom code) or that others have already solved the problem?

    Thanks again,

  4. Kevin Dees
    Plugin Author

    Posted 3 years ago #

    Normally, in jQuery AJAX requests there is a place for a callback after the sync has taken place. You will most likely need to add some custom code where that callback is located.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • FitVids for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic