WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: FitVids for WordPress] FitVids & Ajax?

[Resolved] [Plugin: FitVids for WordPress] FitVids & Ajax?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kevin Dees
    Member

    @kevindees

    unfortunately this is something that you would need to create a callback for with your Ajax call. FitVids only runs when the page is loaded. Anything added to the page with JS will need to be coded for within the theme.

    nimmolo
    Member

    @nimmolo

    Hi Kevin,
    so is there a fitvids-created function I can call, if FitVids is activated, to run on Ajax-loaded content?

    I’m using Infinite Scroll and it does provide for js callbacks, but i’m not sure what function to call.

    Plugin Author Kevin Dees
    Member

    @kevindees

    You can run fitvids at any time using the standard call. However, the object you select needs to only contain the new content. If you run fitvids on an item twice you will run into issues.

    $(“#thing-with-videos”).fitVids()

    To do what you are asking you might be able to run the above function using the selector or object returned by the ajax call.

    Plugin Author Kevin Dees
    Member

    @kevindees

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: FitVids for WordPress] FitVids & Ajax?’ is closed to new replies.