WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. idoremus
    Member
    Posted 1 year 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

    http://wordpress.org/extend/plugins/fitvids-for-wordpress/

  2. Kevin Dees
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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,
    Ian

  4. Kevin Dees
    Member
    Plugin Author

    Posted 1 year 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.

    http://stackoverflow.com/questions/8840257/jquery-ajax-handling-continue-responses-success-vs-done

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic