• About
  • FAQ
  • Contact Us
DIYWebmastery WordPress Training, Consultancy, Web Design
  • Home
  • Our WordPress Plugins
    • AuthorSure
    • CaptionPix
    • Footer Putter
    • Genesis Club Lite
    • Genesis Club Pro
    • Genesis Dambuster
    • Slickr Flickr
    • SubscriptionBoss
  • Our Services
    • WordPress Site Design and Development
    • WordPress Individual Tuition
    • WordPress Site Review
    • WordPress Security and Forensics
    • Infusionsoft Consultancy
    • Online Business Strategy
  • Tutorials
  • Blog
Home » Tutorials » Mobile Responsive Videos Using FitVids

Mobile Responsive Videos Using FitVids

by Russell

FitVids is a jQuery script that resizes videos according to the size of the device’s screen. This means your videos are sized perfectly for iPhone, iPad, laptop and desktop devices.

This feature can be enabled using the Genesis Club plugin. For reasons of performance and efficiency the Genesis Club plugin allows you some control as to where the FitVids scripts is loaded so WordPress is not loading the script unnecessarily on pages where it is not used.

FitVids Settings

Here is the panel found under Genesis Club Miscellaneous Settings

Screenshot of Mobile Responsive Video Settings

You have 4 choices:

  • None – FitVids is never loaded
  • Home – FitVids is loaded just on your home page
  • On Demand – FitVids is loaded on demand
  • All – FitVids is loaded on every page

FitVids Loading On Demand

If you select the On Demand option, the content of the page will be scanned for a responsive video. If it finds one then the FitVids code is loaded, if no video is found then FitVids is not loaded.

Marking A Video As Responsive

For FitVids to work you need to place each video in a DIV element with a class of responsive-video.

For example:

[html]
<div class="responsive-video">
<iframe width="560" height="315" src="http://www.youtube.com/embed/mknOFn5XwKQ?list=UUfaTwP3gkcuYgUhGw_JT_ZQ" frameborder="0" allowfullscreen>
</iframe></div>
[/html]

Mobile Responsive Video Example

When viewing the video below, drag the bottom right hand corner of the window to the left and watch how the video is resized as you move from desktop to laptop to notebook to phone size.

Filed Under: Tutorials Tagged With: Genesis Club Plugin

Return To Top
  • About
  • Affiliates
  • Contact
  • Privacy Statement
  • Terms And Conditions
2009-2025 DIYwebmastery
The Studio · Hatherleigh · Devon · EX20 3NA · UK[email protected]

DIYWebmastery Plugins

AuthorSure CaptionPix ClickMastery Footer Putter Genesis Club Lite Genesis Club Pro Genesis Dambuster Slickr Flickr SubscriptionBoss